Share via


XmlTextReader Members

The following tables list the members exposed by the XmlTextReader type.

Public Constructors

Name Description
Public Method XmlTextReader Overloaded. Initializes a new instance of the XmlTextReader.

Public Properties

Name Description
Public Property AttributeCount Gets the number of attributes on the current node.
Public Property BaseURI Gets the BaseURI of the current node.
Public Property CanReadBinaryContent Gets a value indicating whether the XmlTextReader implements the binary content read methods.
Public Property CanReadValueChunk Gets a value indicating whether the XmlTextReader implements the ReadValueChunk method.
Public Property CanResolveEntity Gets a value indicating whether this reader can parse and resolve entities.
Public Property Depth Gets the depth of the current node in the XML document.
Public Property EOF Gets a value indicating whether the reader is positioned at the end of the stream.
Public Property HasValue Gets a value indicating whether the current node can have a Value other than String.Empty.
Public Property 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.
Public Property IsEmptyElement Gets a value indicating whether the current node is an empty element.
Public Property LineNumber Gets the current line number.
Public Property LinePosition Gets the current line position.
Public Property LocalName Gets the LocalName of the current node.
Public Property Name Gets the qualified name of the current node.
Public Property NamespaceURI Gets the NamespaceURI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.
Public Property NameTable Gets the XmlNameTable associated with this implementation.
Public Property NodeType Gets the type of the current node.
Public Property Prefix Gets the namespace prefix associated with the current node.
Public Property QuoteChar Gets the quotation mark character used to enclose the value of an attribute node.
Public Property ReadState Gets the state of the reader.
Public Property Settings Gets the XmlReaderSettings object used to create this XmlTextReader instance.
Public Property Value Gets the text value of the current node.
Public Property XmlLang Gets the current xml:lang scope.
Public Property XmlSpace Gets the current xml:space scope.

Public Methods

Name Description
Public Method Close Changes the ReadState to Closed.
Public Method GetAttribute Overloaded. Gets the value of an attribute.
Public Method HasLineInfo Gets a value indicating whether the class can return line information.
Public Method LookupNamespace Resolves a namespace prefix in the current element's scope.
Public Method MoveToAttribute Overloaded. Overloaded. Overridden. Moves to the specified attribute.
Public Method MoveToElement Moves to the element that contains the current attribute node.
Public Method MoveToFirstAttribute Moves to the first attribute.
Public Method MoveToNextAttribute Moves to the next attribute.
Public Method Read Reads the next node from the stream.
Public Method ReadAttributeValue Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.
Public Method ReadValueChunk Reads large streams of text embedded in an XML document.
Public Method ResolveEntity Resolves the entity reference for EntityReference nodes.
Public Method Skip Skips the children of the current node.

See Also

Reference

XmlTextReader Class
System.Xml Namespace