Xml.Parse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Parse(Reader, IContentHandler) |
Parses xml from the given reader and fires events on the given SAX handler. |
| Parse(String, IContentHandler) |
Parses the given xml string and fires events on the given SAX handler. |
| Parse(Stream, Xml+Encoding, IContentHandler) |
Parses xml from the given input stream and fires events on the given SAX handler. |
Parse(Reader, IContentHandler)
Parses xml from the given reader and fires events on the given SAX handler.
[Android.Runtime.Register("parse", "(Ljava/io/Reader;Lorg/xml/sax/ContentHandler;)V", "")]
public static void Parse(Java.IO.Reader? in, Org.Xml.Sax.IContentHandler? contentHandler);
[<Android.Runtime.Register("parse", "(Ljava/io/Reader;Lorg/xml/sax/ContentHandler;)V", "")>]
static member Parse : Java.IO.Reader * Org.Xml.Sax.IContentHandler -> unit
Parameters
- in
- Reader
The reader that supplies the XML text.
- contentHandler
- IContentHandler
The SAX handler that receives parser events.
- Attributes
Exceptions
Remarks
Parses xml from the given reader and fires events on the given SAX handler.
Java documentation for android.util.Xml.parse(java.io.Reader, org.xml.sax.ContentHandler).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Parse(String, IContentHandler)
Parses the given xml string and fires events on the given SAX handler.
[Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/ContentHandler;)V", "")]
public static void Parse(string? xml, Org.Xml.Sax.IContentHandler? contentHandler);
[<Android.Runtime.Register("parse", "(Ljava/lang/String;Lorg/xml/sax/ContentHandler;)V", "")>]
static member Parse : string * Org.Xml.Sax.IContentHandler -> unit
Parameters
- xml
- String
The XML text to parse.
- contentHandler
- IContentHandler
The SAX handler that receives parser events.
- Attributes
Exceptions
Remarks
Parses the given xml string and fires events on the given SAX handler.
Java documentation for android.util.Xml.parse(java.lang.String, org.xml.sax.ContentHandler).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Parse(Stream, Xml+Encoding, IContentHandler)
Parses xml from the given input stream and fires events on the given SAX handler.
[Android.Runtime.Register("parse", "(Ljava/io/InputStream;Landroid/util/Xml$Encoding;Lorg/xml/sax/ContentHandler;)V", "")]
public static void Parse(System.IO.Stream? in, Android.Util.Xml.Encoding? encoding, Org.Xml.Sax.IContentHandler? contentHandler);
[<Android.Runtime.Register("parse", "(Ljava/io/InputStream;Landroid/util/Xml$Encoding;Lorg/xml/sax/ContentHandler;)V", "")>]
static member Parse : System.IO.Stream * Android.Util.Xml.Encoding * Org.Xml.Sax.IContentHandler -> unit
Parameters
- in
- Stream
The stream that contains the XML bytes.
- encoding
- Xml.Encoding
The encoding constant used to configure the input source.
- contentHandler
- IContentHandler
The SAX handler that receives parser events.
- Attributes
Exceptions
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.