This documentation is archived and is not being maintained.

XmlTextReader Methods

The methods of the XmlTextReader class are listed here. For a complete list of XmlTextReader class members, see the XmlTextReader Members topic.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Overridden. Changes the ReadState to Closed.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetAttribute

Supported by the .NET Compact Framework.

Overloaded. Overridden. Gets the value of an attribute.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetRemainder

Supported by the .NET Compact Framework.

Gets the remainder of the buffered XML.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodIsStartElement (inherited from XmlReader)

Supported by the .NET Compact Framework.

Overloaded. Tests if the current content node is a start tag.
public methodLookupNamespace

Supported by the .NET Compact Framework.

Overridden. Resolves a namespace prefix in the current element's scope.
public methodMoveToAttribute

Supported by the .NET Compact Framework.

Overloaded. Overridden. Moves to the specified attribute.
public methodMoveToContent (inherited from XmlReader)

Supported by the .NET Compact Framework.

Checks whether the current node is a content (non-white space text, CDATA, Element, EndElement, EntityReference, or EndEntity) node. If the node is not a content node, the reader skips ahead to the next content node or end of file. It skips over nodes of the following type: ProcessingInstruction, DocumentType, Comment, Whitespace, or SignificantWhitespace.
public methodMoveToElement

Supported by the .NET Compact Framework.

Overridden. Moves to the element that contains the current attribute node.
public methodMoveToFirstAttribute

Supported by the .NET Compact Framework.

Overridden. Moves to the first attribute.
public methodMoveToNextAttribute

Supported by the .NET Compact Framework.

Overridden. Moves to the next attribute.
public methodRead

Supported by the .NET Compact Framework.

Overridden. Reads the next node from the stream.
public methodReadAttributeValue

Supported by the .NET Compact Framework.

Overridden. Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.
public methodReadBase64

Supported by the .NET Compact Framework.

Decodes Base64 and returns the decoded binary bytes.
public methodReadBinHex

Supported by the .NET Compact Framework.

Decodes BinHex and returns the decoded binary bytes.
public methodReadChars

Supported by the .NET Compact Framework.

Reads the text contents of an element into a character buffer. This method is designed to read large streams of embedded text by calling it successively.
public methodReadElementString (inherited from XmlReader)

Supported by the .NET Compact Framework.

Overloaded. This is a helper method for reading simple text-only elements.
public methodReadEndElement (inherited from XmlReader)

Supported by the .NET Compact Framework.

Checks that the current content node is an end tag and advances the reader to the next node.
public methodReadInnerXml (inherited from XmlReader)

Supported by the .NET Compact Framework.

When overridden in a derived class, reads all the content, including markup, as a string.
public methodReadOuterXml (inherited from XmlReader)

Supported by the .NET Compact Framework.

When overridden in a derived class, reads the content, including markup, representing this node and all its children.
public methodReadStartElement (inherited from XmlReader)

Supported by the .NET Compact Framework.

Overloaded. Checks that the current node is an element and advances the reader to the next node.
public methodReadString (inherited from XmlReader)

Supported by the .NET Compact Framework.

When overridden in a derived class, reads the contents of an element or text node as a string.
public methodResetState

Supported by the .NET Compact Framework.

Resets the state of the reader to ReadState.Initial.
public methodResolveEntity

Supported by the .NET Compact Framework.

Overridden. Resolves the entity reference for EntityReference nodes.
public methodSkip (inherited from XmlReader)

Supported by the .NET Compact Framework.

Skips the children of the current node.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

XmlTextReader Class | System.Xml Namespace

Show: