System.Xml.XmlTextReader Members

The members of System.Xml.XmlTextReader are listed below.

See Also: Inherited members from System.Xml.XmlReader

Public Constructors

Initializes a new instance of the System.Xml.XmlTextReader class with the specified stream.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified System.IO.TextReader.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified file.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified stream and System.Xml.XmlNameTable.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified System.IO.TextReader and System.Xml.XmlNameTable.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified URL and stream.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified URL and System.IO.TextReader.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified file and System.Xml.XmlNameTable.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified stream, System.Xml.XmlNodeType, and System.Xml.XmlParserContext.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified URL, stream and System.Xml.XmlNameTable.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified URL, System.IO.TextReader and System.Xml.XmlNameTable.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified string, System.Xml.XmlNodeType, and System.Xml.XmlParserContext.

Protected Constructors

Initializes a new instance of the XmlTextReader.

Initializes a new instance of the System.Xml.XmlTextReader class with the specified System.Xml.XmlNameTable.

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.

Public Methods

override
Close()

Changes the XmlReader.ReadState to Closed.

override
GetAttribute(int) : string

Gets the value of the attribute with the specified index.

override
GetAttribute(string) : string

Gets the value of the attribute with the specified name.

override
GetAttribute(string, string) : string

Gets the value of the attribute with the specified local name and namespace URI.

GetNamespacesInScope(XmlNamespaceScope) : IDictionary<string, string>

Gets a collection that contains all namespaces currently in-scope.

GetRemainder() : System.IO.TextReader

Gets the remainder of the buffered XML.

HasLineInfo() : bool

Gets a value indicating whether the class can return line information.

override
LookupNamespace(string) : string

Resolves a namespace prefix in the current element's scope.

override
MoveToAttribute(int)

Moves to the attribute with the specified index.

override
MoveToAttribute(string) : bool

Moves to the attribute with the specified name.

override
MoveToAttribute(string, string) : bool

Moves to the attribute with the specified local name and namespace URI.

override
MoveToElement() : bool

Moves to the element that contains the current attribute node.

override
MoveToFirstAttribute() : bool

Moves to the first attribute.

override
MoveToNextAttribute() : bool

Moves to the next attribute.

override
Read() : bool

Reads the next node from the stream.

override
ReadAttributeValue() : bool

Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.

ReadBase64(byte[], int, int) : int

Decodes Base64 and returns the decoded binary bytes.

ReadBinHex(byte[], int, int) : int

Decodes BinHex and returns the decoded binary bytes.

ReadChars(char[], int, int) : int

Reads the text contents of an element into a character buffer. This method is designed to read large streams of embedded text by calling it successively.

override
ReadContentAsBase64(byte[], int, int) : int

Reads the content and returns the Base64 decoded binary bytes.

override
ReadContentAsBinHex(byte[], int, int) : int

Reads the content and returns the BinHex decoded binary bytes.

override
ReadElementContentAsBase64(byte[], int, int) : int

Reads the element and decodes the Base64 content.

override
ReadElementContentAsBinHex(byte[], int, int) : int

Reads the element and decodes the BinHex content.

override
ReadString() : string

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

ResetState()

Resets the state of the reader to ReadState.Initial.

override
ResolveEntity()

Resolves the entity reference for EntityReference nodes.

override
Skip()

Skips the children of the current node.

Explicitly Implemented Interface Members