System.Xml.XmlTextReader: Property Members

The properties of System.Xml.XmlTextReader are listed below. For a list of all members, see the XmlTextReader Members list.

See Also: Inherited members from System.Xml.XmlReader

Public Properties

[read-only]
override
AttributeCountint.

Gets the number of attributes on the current node.

[read-only]
override
BaseURIstring.

Gets the base URI of the current node.

[read-only]
override
CanReadBinaryContentbool.

Gets a value indicating whether the System.Xml.XmlTextReader implements the binary content read methods.

[read-only]
override
CanReadValueChunkbool.

Gets a value indicating whether the System.Xml.XmlTextReader implements the XmlReader.ReadValueChunk(Char[], int, int) method.

[read-only]
override
CanResolveEntitybool.

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

[read-only]
override
Depthint.

Gets the depth of the current node in the XML document.

[read-only]
EncodingSystem.Text.Encoding.

Gets the encoding of the document.

EntityHandlingEntityHandling.

Gets or sets a value that specifies how the reader handles entities.

[read-only]
override
EOFbool.

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

[read-only]
override
HasValuebool.

Gets a value indicating whether the current node can have a XmlTextReader.Value other than String.Empty.

[read-only]
override
IsDefaultbool.

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

[read-only]
override
IsEmptyElementbool.

Gets a value indicating whether the current node is an empty element (for example, <MyElement/>).

[read-only]
default property
Item(int)string. Retrieves the value of the attribute with the specified index relative to the containing element.
[read-only]
default property
Item(string)string. Retrieves the value of the attribute with the specified qualified name.
[read-only]
default property
Item(string, string)string. Retrieves the value of the attribute with the specified local name and namespace URI.
[read-only]
LineNumberint.

Gets the current line number.

[read-only]
LinePositionint.

Gets the current line position.

[read-only]
override
LocalNamestring.

Gets the local name of the current node.

[read-only]
override
Namestring.

Gets the qualified name of the current node.

Namespacesbool.

Gets or sets a value indicating whether to do namespace support.

[read-only]
override
NamespaceURIstring.

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

[read-only]
override
NameTableXmlNameTable.

Gets the System.Xml.XmlNameTable associated with this implementation.

[read-only]
override
NodeTypeXmlNodeType.

Gets the type of the current node.

Normalizationbool.

Gets or sets a value indicating whether to normalize white space and attribute values.

[read-only]
override
Prefixstring.

Gets the namespace prefix associated with the current node.

ProhibitDtdbool.

Gets or sets a value indicating whether to allow DTD processing. This property is obsolete. Use XmlTextReader.DtdProcessing instead.

[read-only]
override
QuoteCharchar.

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

[read-only]
override
ReadStateReadState.

Gets the state of the reader.

[read-only]
override
SettingsXmlReaderSettings.

Gets the System.Xml.XmlReaderSettings object used to create this System.Xml.XmlTextReader instance.

[read-only]
override
Valuestring.

Gets the text value of the current node.

WhitespaceHandlingWhitespaceHandling.

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

[read-only]
override
XmlLangstring.

Gets the current xml:lang scope.

[write-only]
XmlResolverXmlResolver.

Sets the System.Xml.XmlResolver used for resolving DTD references.

[read-only]
override
XmlSpaceXmlSpace.

Gets the current xml:space scope.