Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;            
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }