Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
 /// <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;            
 }
Exemple #5
0
 /// <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;
 }
Exemple #6
0
 /// <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;
 }