XmlPullParserReader Class
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.
Exposes a Java XML pull parser as a .NET XML reader.
public class XmlPullParserReader : System.Xml.XmlReader, System.Xml.IXmlLineInfo
type XmlPullParserReader = class
inherit XmlReader
interface IXmlLineInfo
- Inheritance
-
XmlPullParserReader
- Derived
- Implements
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.
Constructors
| Name | Description |
|---|---|
| XmlPullParserReader(IJavaObject) |
Creates a reader over the supplied XML pull parser. |
Properties
| Name | Description |
|---|---|
| AttributeCount |
Gets the combined count of parser attributes and namespace attributes. |
| BaseURI |
Gets the base URI for the reader. |
| Depth |
Gets the reader's depth from the parser and the current attribute position. |
| EOF |
Checks whether the parser is at its end-of-document event. |
| Handle |
Gets the wrapped parser's JNI handle. |
| HasAttributes |
Checks for parser or namespace attributes. |
| HasValue |
Checks whether the current position has a value. |
| IsDefault |
Checks whether the current parser attribute is a default attribute. |
| IsEmptyElement |
Gets the wrapped parser's empty-element state. |
| LineNumber |
Gets the current line number from the parser. |
| LinePosition |
Gets the current line position from the parser. |
| LocalName |
Gets the local name for the current parser or attribute position. |
| Name |
Gets the current local name with its prefix, when a prefix is available. |
| NamespaceURI |
Gets the namespace value for the current parser or attribute position. |
| NameTable |
Gets the name table used by the reader's namespace manager. |
| NodeType |
Gets the XML node type for the current parser or attribute position. |
| Prefix |
Looks up a prefix for the current namespace URI. |
| ReadState |
Gets the reader's state from its start flag and the parser's end-of-document event. |
| Value |
Gets the value for the current parser or attribute position. |
Methods
| Name | Description |
|---|---|
| Close() |
Closes the wrapped parser if it is an XML resource parser. Otherwise, this method does nothing. |
| FromJniHandle(IntPtr, JniHandleOwnership) |
Creates a reader for an XML pull parser obtained from a JNI reference. |
| GetAttribute(Int32) |
Gets a parser attribute value or namespace URI by index. |
| GetAttribute(String, String) |
Gets an attribute value by local name and namespace URI. |
| GetAttribute(String) |
Gets an attribute value using a qualified name. |
| HasLineInfo() |
Reports whether the reader is not positioned on an attribute. |
| LookupNamespace(String) |
Looks up a namespace URI in the reader's namespace manager. |
| MoveToAttribute(Int32) |
Moves to the indexed attribute. Throws IndexOutOfRangeException if the index is outside the attribute count. |
| MoveToAttribute(String, String) |
Moves to a matching parser or namespace attribute. |
| MoveToAttribute(String) |
Moves to an attribute using a qualified name. |
| MoveToElement() |
Moves away from the current attribute or attribute value. |
| MoveToFirstAttribute() |
Sets the current attribute position to zero unless the parser reports zero attributes and no namespace attributes are present. |
| MoveToNextAttribute() |
Attempts to move to the next parser or namespace attribute. |
| Read() |
Advances the wrapped parser unless it is at its end-of-document event, and may update the reader's namespace state. |
| ReadAttributeValue() |
Moves to the value of the current attribute if it has not already done so. |
| ResolveEntity() |
Always throws NotSupportedException. Entity resolution is not supported. |