Example #1
0
 public static XDocument LoadXml(this FileInfo url)
 {
     return(Xml.Load(url == null ? null : url.FullName));
 }
Example #2
0
 public static XDocument LoadXml(this String url, ICredentials credentials = null)
 {
     return(Xml.Load(url, credentials));
 }
Example #3
0
 public static XDocument LoadXmlOrDefault(this String url, Func <XDocument> xml, ICredentials credentials = null)
 {
     return(Xml.LoadOrDefault(url, xml, credentials));
 }
Example #4
0
 public static void WriteXml(this TextWriter w, XDocument xml)
 {
     Xml.Write(w, xml);
 }
Example #5
0
 public static XDocument ParseXmlOrDefault(this String url, Func <XDocument> xml)
 {
     return(Xml.ParseOrDefault(url, xml));
 }
Example #6
0
 public static XDocument LoadXmlOrDefault(this Uri url, Func <XDocument> xml, ICredentials credentials = null)
 {
     return(Xml.LoadOrDefault(url == null ? null : url.AbsoluteUri, xml, credentials));
 }
Example #7
0
 public static XDocument ReadXmlOrDefault(this Stream s)
 {
     return(Xml.ReadOrDefault(s));
 }
Example #8
0
 public static void SaveXml(this FileInfo url, XDocument xml, ICredentials credentials = null)
 {
     Xml.Save(url == null ? null : url.FullName, xml, credentials);
 }
Example #9
0
 public static void SaveXml(this Uri url, XDocument xml, ICredentials credentials = null)
 {
     Xml.Save(url.AbsoluteUri, xml, credentials);
 }
Example #10
0
 public static XDocument ReadXmlOrDefault(this TextReader w)
 {
     return(Xml.ReadOrDefault(w));
 }
Example #11
0
 public static XDocument ReadXmlOrDefault(this TextReader w, Func <XDocument> xml)
 {
     return(Xml.ReadOrDefault(w, xml));
 }
Example #12
0
 public static XDocument ReadXml(this TextReader w)
 {
     return(Xml.Read(w));
 }
Example #13
0
 public static XDocument ReadXmlOrDefault(this Stream s, Func <XDocument> xml)
 {
     return(Xml.ReadOrDefault(s, xml));
 }
Example #14
0
 public static XDocument ParseXml(this String url)
 {
     return(Xml.Parse(url));
 }
Example #15
0
 public static XDocument LoadXmlOrDefault(this FileInfo url, Func <XDocument> xml)
 {
     return(Xml.LoadOrDefault(url == null ? null : url.FullName, xml));
 }
Example #16
0
 public static void SaveXml(this Url url, XDocument xml, ICredentials credentials = null)
 {
     Xml.Save(url, xml, credentials);
 }
Example #17
0
 public static XDocument LoadXml(this Uri url, ICredentials credentials = null)
 {
     return(Xml.Load(url == null ? null : url.AbsoluteUri, credentials));
 }
Example #18
0
 public static void WriteXml(this Stream s, XDocument xml)
 {
     Xml.Write(s, xml);
 }
Example #19
0
 public static XDocument LoadXmlOrDefault(this Url url, ICredentials credentials = null)
 {
     return(Xml.LoadOrDefault(url, credentials));
 }
Example #20
0
 public static XDocument ReadXml(this Stream s)
 {
     return(Xml.Read(s));
 }