Org.Xml.Sax.IXMLReader.Parse Method
Parse an XML document.

Syntax

[Android.Runtime.Register("parse", "(Lorg/xml/sax/InputSource;)V", "GetParse_Lorg_xml_sax_InputSource_Handler:Org.Xml.Sax.IXMLReaderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Parse (InputSource input)

See Also

InputSource
IXMLReader.Parse(string)
IXMLReader.EntityResolver
IXMLReader.DTDHandler
IXMLReader.ContentHandler
IXMLReader.ErrorHandler

Parameters

input
The input source for the top-level of the XML document.

Exceptions

TypeReason
Org.Xml.Sax.SAXExceptionAny SAX exception, possibly wrapping another exception.
Java.IO.IOExceptionAn IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

Remarks

Parse an XML document.

The application can use this method to instruct the XML reader to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).

Applications may not invoke this method while a parse is in progress (they should create a new XMLReader instead for each nested XML document). Once a parse is complete, an application may reuse the same XMLReader object, possibly with a different input source. Configuration of the XMLReader object (such as handler bindings and values established for feature flags and properties) is unchanged by completion of a parse, unless the definition of that aspect of the configuration explicitly specifies other behavior. (For example, feature flags or properties exposing characteristics of the document being parsed.)

During the parse, the XMLReader will provide information about the XML document through the registered event handlers.

This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception.

[Android Documentation]

Requirements

Namespace: Org.Xml.Sax
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1