Language

XmlResourceParserReader Class

Definition

Exposes a Java XML resource parser as a .NET XML reader.

public class XmlResourceParserReader : Android.Runtime.XmlPullParserReader
type XmlResourceParserReader = class
    inherit XmlPullParserReader
Inheritance
XmlResourceParserReader

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
XmlResourceParserReader(IJavaObject)

Creates a reader over the supplied XML resource parser.

Properties

Name Description
AttributeCount

Gets the combined count of parser attributes and namespace attributes.

(Inherited from XmlPullParserReader)
BaseURI

Gets the base URI for the reader.

(Inherited from XmlPullParserReader)
Depth

Gets the reader's depth from the parser and the current attribute position.

(Inherited from XmlPullParserReader)
EOF

Checks whether the parser is at its end-of-document event.

(Inherited from XmlPullParserReader)
Handle

Gets the wrapped parser's JNI handle.

(Inherited from XmlPullParserReader)
HasAttributes

Checks for parser or namespace attributes.

(Inherited from XmlPullParserReader)
HasValue

Checks whether the current position has a value.

(Inherited from XmlPullParserReader)
IsDefault

Checks whether the current parser attribute is a default attribute.

(Inherited from XmlPullParserReader)
IsEmptyElement

Gets the wrapped parser's empty-element state.

(Inherited from XmlPullParserReader)
LineNumber

Gets the current line number from the parser.

(Inherited from XmlPullParserReader)
LinePosition

Gets the current line position from the parser.

(Inherited from XmlPullParserReader)
LocalName

Gets the local name for the current parser or attribute position.

(Inherited from XmlPullParserReader)
Name

Gets the current local name with its prefix, when a prefix is available.

(Inherited from XmlPullParserReader)
NamespaceURI

Gets the namespace value for the current parser or attribute position.

(Inherited from XmlPullParserReader)
NameTable

Gets the name table used by the reader's namespace manager.

(Inherited from XmlPullParserReader)
NodeType

Gets the XML node type for the current parser or attribute position.

(Inherited from XmlPullParserReader)
Prefix

Looks up a prefix for the current namespace URI.

(Inherited from XmlPullParserReader)
ReadState

Gets the reader's state from its start flag and the parser's end-of-document event.

(Inherited from XmlPullParserReader)
Value

Gets the value for the current parser or attribute position.

(Inherited from XmlPullParserReader)

Methods

Name Description
Close()

Closes the wrapped XML resource parser.

FromJniHandle(IntPtr, JniHandleOwnership)

Creates a reader for an XML resource parser obtained from a JNI reference.

GetAttribute(Int32)

Gets a parser attribute value or namespace URI by index.

(Inherited from XmlPullParserReader)
GetAttribute(String, String)

Gets an attribute value by local name and namespace URI.

(Inherited from XmlPullParserReader)
GetAttribute(String)

Gets an attribute value using a qualified name.

(Inherited from XmlPullParserReader)
HasLineInfo()

Reports whether the reader is not positioned on an attribute.

(Inherited from XmlPullParserReader)
LookupNamespace(String)

Looks up a namespace URI in the reader's namespace manager.

(Inherited from XmlPullParserReader)
MoveToAttribute(Int32)

Moves to the indexed attribute. Throws IndexOutOfRangeException if the index is outside the attribute count.

(Inherited from XmlPullParserReader)
MoveToAttribute(String, String)

Moves to a matching parser or namespace attribute.

(Inherited from XmlPullParserReader)
MoveToAttribute(String)

Moves to an attribute using a qualified name.

(Inherited from XmlPullParserReader)
MoveToElement()

Moves away from the current attribute or attribute value.

(Inherited from XmlPullParserReader)
MoveToFirstAttribute()

Sets the current attribute position to zero unless the parser reports zero attributes and no namespace attributes are present.

(Inherited from XmlPullParserReader)
MoveToNextAttribute()

Attempts to move to the next parser or namespace attribute.

(Inherited from XmlPullParserReader)
Read()

Advances the wrapped parser unless it is at its end-of-document event, and may update the reader's namespace state.

(Inherited from XmlPullParserReader)
ReadAttributeValue()

Moves to the value of the current attribute if it has not already done so.

(Inherited from XmlPullParserReader)
ResolveEntity()

Always throws NotSupportedException. Entity resolution is not supported.

(Inherited from XmlPullParserReader)

Applies to