IXMLReader Interface
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.
Interface for reading an XML document using callbacks.
[Android.Runtime.Register("org/xml/sax/XMLReader", "", "Org.Xml.Sax.IXMLReaderInvoker")]
public interface IXMLReader : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/xml/sax/XMLReader", "", "Org.Xml.Sax.IXMLReaderInvoker")>]
type IXMLReader = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
Interface for reading an XML document using callbacks.
<blockquote> <em>This module, both source code and documentation, is in the Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> See http://www.saxproject.org for further information. </blockquote>
<strong>Note:</strong> despite its name, this interface does <em>not</em> extend the standard Java java.io.Reader Reader
interface, because reading XML is a fundamentally different activity than reading character data.
XMLReader is the interface that an XML parser's SAX2 driver must implement. This interface allows an application to set and query features and properties in the parser, to register event handlers for document processing, and to initiate a document parse.
All SAX interfaces are assumed to be synchronous: the #parse parse
methods must not return until parsing is complete, and readers must wait for an event-handler callback to return before reporting the next event.
This interface replaces the (now deprecated) SAX 1.0 org.xml.sax.Parser Parser
interface. The XMLReader interface contains two important enhancements over the old Parser interface (as well as some minor ones):
<ol> <li>it adds a standard way to query and set features and properties; and</li> <li>it adds Namespace support, which is required for many higher-level XML standards.</li> </ol>
There are adapters available to convert a SAX1 Parser to a SAX2 XMLReader and vice-versa.
Added in SAX 2.0.
Java documentation for org.xml.sax.XMLReader
.
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.
Properties
ContentHandler |
Return the current content handler. |
DTDHandler |
Return the current DTD handler. |
EntityResolver |
Return the current entity resolver. |
ErrorHandler |
Return the current error handler. |
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
GetFeature(String) |
Look up the value of a feature flag. |
GetProperty(String) |
Look up the value of a property. |
Parse(InputSource) |
Parse an XML document. |
Parse(String) |
Parse an XML document from a system identifier (URI). |
SetFeature(String, Boolean) |
Set the value of a feature flag. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
SetProperty(String, Object) |
Set the value of a property. |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) | |
ParseAsync(IXMLReader, InputSource) | |
ParseAsync(IXMLReader, String) |