Properties

XmlTextReader Properties

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

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 (inherited from XmlReader)

Supported by the .NET Compact Framework.

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 propertyEncoding

Supported by the .NET Compact Framework.

Gets the encoding of the 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 (inherited from XmlReader)

Supported by the .NET Compact Framework.

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

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

public propertyLineNumber

Supported by the .NET Compact Framework.

Gets the current line number.
public propertyLinePosition

Supported by the .NET Compact Framework.

Gets the current line position.
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 propertyNamespaces

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to do namespace support.
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 propertyNormalization

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to normalize white space and attribute values.
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 propertyWhitespaceHandling

Supported by the .NET Compact Framework.

Gets or sets a value that specifies how white space is handled.
public propertyXmlLang

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Sets the XmlResolver used for resolving DTD references.
public propertyXmlSpace

Supported by the .NET Compact Framework.

Overridden. Gets the current xml:space scope.

See Also

XmlTextReader Class | System.Xml Namespace

Show:
© 2016 Microsoft