complete-reference-vb_net_68
complete-reference-vb_net_68
WhitespaceHandling (p) Retrieves or changes a value that specifies how white space is handled
XmlLang (p) Retrieves the current xml:lang scope
XmlResolver (p) Changes the XmlResolver used for resolving DTD references
XmlSpace (p) Retrieves the current xml:space scope
Close Changes the ReadState to Closed
Equals (inherited from Object) Determines whether two Object instances are equal
GetAttribute Retrieves the value of an attribute
GetRemainder Retrieves the remainder of the buffered XML
IsStartElement Tests if the current content node is a start tag
LookupNamespace Resolves a namespace prefix in the current element's scope
MoveToAttribute Moves to the specified attribute
MoveToContent Checks whether the current node is a content (nonwhite space text,
CDATA, Element, EndElement, EntityReference, or EndEntity) node. If
the node is not a content node, the reader skips ahead to the next content
node or end of file. It skips over nodes of the following types:
ProcessingInstruction, DocumentType, Comment, Whitespace, or
SignificantWhitespace.
MoveToElement Moves to the element that contains the current attribute node
MoveToFirstAttribute Moves to the first attribute
MoveToNextAttribute Moves to the next attribute
Read Overridden Reads the next node from the stream
ReadAttributeValue Parses the attribute value into one or more Text, EntityReference, or
EndEntity nodes
ReadBase64 Decodes Base64 and returns the decoded binary bytes
ReadBinHex Decodes BinHex and returns the decoded binary bytes
ReadChars 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.
ReadElementString This is a helper method for reading simple text−only elements
ReadEndElement Checks that the current content node is an end tag and advances the reader
to the next node
ReadInnerXml Reads all the content, including markup, as a string
ReadOuterXml Reads the content, including markup, representing this node and all its
children
ReadStartElement Checks that the current node is an element and advances the reader to the
next node
ReadString Reads the contents of an element or a text node as a string
ResetState Resets the state of the reader to ReadState.Initial
ResolveEntity Resolves the entity reference for EntityReference nodes
Skip Skips the children of the current node
Note The XmlTextReader class is located in System.Xml.
When we read the file, the XmlTextReader class that we create maintains a nodetype property used to return
the type of node currently being read. The Name property retrieves element and attribute names, and the
Value property retrieves the text value that the node contains. Consider the following example of reading the
552