This documentation is archived and is not being maintained.

XmlNodeReader Members

XmlNodeReader overview

Public Constructors

public constructorXmlNodeReader Constructor

Supported by the .NET Compact Framework.

Creates an instance of the XmlNodeReader class using the specified XmlNode.

Public Properties

public propertyAttributeCount

Supported by the .NET Compact Framework.

Overridden. Gets the number of attributes on the current node.
public propertyBaseURI

Supported by the .NET Compact Framework.

Overridden. Gets the base URI of the current node.
public propertyCanResolveEntity

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether this reader can parse and resolve entities.
public propertyDepth

Supported by the .NET Compact Framework.

Overridden. Gets the depth of the current node in the XML document.
public propertyEOF

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the reader is positioned at the end of the stream.
public propertyHasAttributes

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current node has any attributes.
public propertyHasValue

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current node can have a Value.
public propertyIsDefault

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema.
public propertyIsEmptyElement

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current node is an empty element (for example, <MyElement/>).
public propertyItem Overloaded. Overridden. Gets the value of the specified attribute.

In C#, this property is the indexer for the XmlNodeReader class.

public propertyLocalName

Supported by the .NET Compact Framework.

Overridden. Gets the local name of the current node.
public propertyName

Supported by the .NET Compact Framework.

Overridden. Gets the qualified name of the current node.
public propertyNamespaceURI

Supported by the .NET Compact Framework.

Overridden. Gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.
public propertyNameTable

Supported by the .NET Compact Framework.

Overridden. Gets the XmlNameTable associated with this implementation.
public propertyNodeType

Supported by the .NET Compact Framework.

Overridden. Gets the type of the current node.
public propertyPrefix

Supported by the .NET Compact Framework.

Overridden. Gets the namespace prefix associated with the current node.
public propertyQuoteChar

Supported by the .NET Compact Framework.

Overridden. Gets the quotation mark character used to enclose the value of an attribute node.
public propertyReadState

Supported by the .NET Compact Framework.

Overridden. Gets the state of the reader.
public propertyValue

Supported by the .NET Compact Framework.

Overridden. Gets the text value of the current node.
public propertyXmlLang

Supported by the .NET Compact Framework.

Overridden. Gets the current xml:lang scope.
public propertyXmlSpace

Supported by the .NET Compact Framework.

Overridden. Gets the current xml:space scope.

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 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 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

Supported by the .NET Compact Framework.

Overridden. Reads the contents of an element or text node as a string.
public methodResolveEntity

Supported by the .NET Compact Framework.

Overridden. Resolves the entity reference for EntityReference nodes.
public methodSkip

Supported by the .NET Compact Framework.

Overridden. 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

XmlNodeReader Class | System.Xml Namespace

Show: