/[dotgnu-pnet]/pnetlib/System.Xml/XmlUrlResolver.cs
ViewVC logotype

Diff of /pnetlib/System.Xml/XmlUrlResolver.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by ptah, Thu Dec 16 02:16:37 2004 UTC revision 1.4 by ptah, Mon Dec 20 02:28:29 2004 UTC
# Line 88  public class XmlUrlResolver : XmlResolve Line 88  public class XmlUrlResolver : XmlResolve
88                                                  // Uri to work with, I belive it's safe to assume                                                  // Uri to work with, I belive it's safe to assume
89                                                  // we're looking for a file on the local filesystem.                                                  // we're looking for a file on the local filesystem.
90                                                  //  - "ptah"                                                  //  - "ptah"
91                                                  if (File.Exists(relativeUri))                                                  return new Uri(Path.Combine(
92                                                  {                                                          Directory.GetCurrentDirectory(),
93                                                          return new Uri(Path.Combine(                                                          relativeUri
94                                                                  Directory.GetCurrentDirectory(),                                                  ));
                                                                 relativeUri  
                                                         ));  
                                                 }  
                                                 else  
                                                 {  
                                                         return new Uri(relativeUri);  
                                                 }  
95                                          }                                          }
96                                          else if(relativeUri == null)                                          else if(relativeUri == null)
97                                          {                                          {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26