The properties of the XmlTextReader class are listed below. For a complete list of XmlTextReader class members, see the XmlTextReader Members topic.
AttributeCount | Gets the number of attributes on the current node. |
BaseURI | Gets the base URI of the current node. |
Depth | Gets the depth of the current node in the XML element stack. |
EntityHandling | Gets or sets a value that specifies how the XmlReader handles entities. |
EOF | Gets a value indicating whether XmlReader is positioned at the end of the stream. |
HasAttributes (inherited from XmlReader) | Gets a value indicating whether the current node has any attributes. |
HasValue | Gets a value indicating whether Value has a value to return. |
IsDefault | Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema. |
IsEmptyTag | Gets a value indicating whether the current node is an empty element (for example, <MyElement/>). |
Item | Overloaded. Gets the value of an attribute. This is a shortcut for the GetAttribute method.
In C#, this member is the indexer for the XmlTextReader class. |
LineNumber | Gets the current line number. |
LinePos | Gets the current line position. |
LocalName | Gets the name of the current node without the namespace prefix. |
Name | Gets the name of the current node, including the namespace prefix. |
Namespaces | Gets or sets a value indicating whether to do namespace support. |
NamespaceURI | Gets the namespace URN (as defined in the W3C Namespace Specification) of the current namespace scope. |
NameTable | Gets the XmlNameTable associated with this implementation. |
NodeType | Gets the type of the current node. |
Normalization | Gets or sets a value indicating whether to do whitespace normalization as defined in the XML spec. |
Prefix | Gets the namespace prefix associated with the current node. |
QuoteChar | Gets the quotation mark character used to enclose the value of an attribute node. |
ReadState | Gets the read state of the stream. |
Validation | Gets or sets the type of validation to perform at parse time. |
ValidationCallback | Gets or sets a callback delegate for receiving information about DTD validation errors. |
Value | Gets the text value of the current node. |
WhitespaceHandling | Gets or sets a value specifying how whitespace is handled. |
XmlLang | Gets the current xml:lang scope. |
XmlResolver | Gets or sets the XmlResolver used for resolving URLs and/or PUBLIC Id's used in external DTDs, parameter entities, or XML schemas referenced in namespaces. |
XmlSpace | Gets the current xml:space scope. |