/// <summary> /// Parse the XML content in the given stream into a document. /// </summary> public static XDocument Load(Stream stream, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(new InputStreamReader(stream), handler); return(handler.Document); }
/// <summary> /// Parse the given XML string into a document. /// </summary> public static XDocument Parse(string xml, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(xml, handler); return(handler.Document); }
/// <summary> /// Parse the XML content in the file with given path into a document. /// </summary> public static XDocument Load(string path, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(new FileReader(path), handler); return(handler.Document); }
/// <summary> /// Parse the XML content in the given stream into a document. /// </summary> public static XDocument Load(Stream stream, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(new InputStreamReader(stream), handler); return handler.Document; }
/// <summary> /// Parse the given XML string into a document. /// </summary> public static XDocument Parse(string xml, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(xml, handler); return handler.Document; }
/// <summary> /// Parse the XML content in the file with given path into a document. /// </summary> public static XDocument Load(string path, LoadOptions options) { var handler = new XContentHandler(options); Android.Util.Xml.Parse(new FileReader(path), handler); return handler.Document; }