Complete-Reference-Vb Net 67
Complete-Reference-Vb Net 67
To read an XML file, declare an instance of the XmlTextReader in the same way you declare a standard text
reader, and then call the Read method until you reach the end of the XML file. Here is a simple
implementation of this example, where the "xmlfilepath" parameter expects the path to a valid XML file:
Member Purpose
AttributeCount (p) Retrieves the number of attributes on the current node
BaseURI (p) Retrieves the base URI of the current node
CanResolveEntity (p) Retrieves a value indicating whether this reader can parse and resolve
entities
Depth (p) Retrieves the depth of the current node in the XML document
Encoding (p) Retrieves the encoding of the document
EOF (p) Retrieves a value indicating whether the reader is positioned at the end of
the stream
HasAttributes (p) Retrieves a value indicating whether the current node has any attributes
HasValue (p) Retrieves a value indicating whether the current node can have a Value
IsDefault (p) Retrieves a value indicating whether the current node is an attribute that
was generated from the default value defined in the DTD or schema
IsEmptyElement (p) Retrieves a value indicating whether the current node is an empty element
(for example, <MyElement/>)
Item (p) Retrieves the value of the attribute
LineNumber (p) Retrieves the current line number
LinePosition (p) Retrieves the current line position
LocalName (p) Retrieves the local name of the current node
Name (p) Retrieves the qualified name of the current node
Namespaces (p) Retrieves or changes a value indicating whether to do namespace support
NamespaceURI (p) Retrieves the namespace URI (as defined in the W3C Namespace
specification) of the node on which the reader is positioned
NameTable (p) Retrieves the XmlNameTable associated with this implementation
NodeType (p) Retrieves the type of the current node
Normalization (p) Retrieves or changes a value indicating whether to normalize white space
and attribute values
Prefix (p) Retrieves the namespace prefix associated with the current node
QuoteChar (p) Retrieves the quotation mark character used to enclose the value of an
attribute node
ReadState (p) Retrieves the state of the reader
Value (p) Retrieves the text value of the current node
551