Export (0) Print
Expand All

XmlReader Methods

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

Public Methods

public methodClose

Supported by the .NET Compact Framework.

When overridden in a derived class, 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. When overridden in a derived class, 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 methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)IsName

Supported by the .NET Compact Framework.

Gets a value indicating whether the string argument is a valid XML name.
public methodstatic (Shared in Visual Basic)IsNameToken

Supported by the .NET Compact Framework.

Gets a value indicating whether or not the string argument is a valid XML name token.
public methodIsStartElement

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.

When overridden in a derived class, resolves a namespace prefix in the current element's scope.
public methodMoveToAttribute

Supported by the .NET Compact Framework.

Overloaded. When overridden in a derived class, moves to the specified attribute.
public methodMoveToContent

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.

When overridden in a derived class, moves to the element that contains the current attribute node.
public methodMoveToFirstAttribute

Supported by the .NET Compact Framework.

When overridden in a derived class, moves to the first attribute.
public methodMoveToNextAttribute

Supported by the .NET Compact Framework.

When overridden in a derived class, moves to the next attribute.
public methodRead

Supported by the .NET Compact Framework.

When overridden in a derived class, reads the next node from the stream.
public methodReadAttributeValue

Supported by the .NET Compact Framework.

When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.
public methodReadElementString

Supported by the .NET Compact Framework.

Overloaded. This is a helper method for reading simple text-only elements.
public methodReadEndElement

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

Supported by the .NET Compact Framework.

When overridden in a derived class, reads all the content, including markup, as a string.
public methodReadOuterXml

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

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

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 methodResolveEntity

Supported by the .NET Compact Framework.

When overridden in a derived class, resolves the entity reference for EntityReference nodes.
public methodSkip

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

XmlReader Class | System.Xml Namespace

Show:
© 2014 Microsoft