System.Xml
Specifies the state of the reader.
The Read method has not been called.
The Read method has been called. Additional methods may be called on the reader.
An error occurred that prevents the read operation from continuing.
The end of the stream has been reached successfully.
The Close method has been called and the XmlReader is closed.
Returns information about the last XML related exception.
Initializes a new instance of the XmlException class.
Initializes a new instance of the XmlException class with a specified error message.
The error description.
Initializes a new instance of the XmlException class with a specified error message
and an error code.
The error code indicating the type of error.
Initializes a new instance of the XmlException class.
The error description.
The Exception that threw the XmlException, if any. This value can be null.
Returns the error code indicating the type of error of this XmlException.
Error codes that specifiy the types of XML exceptions. This is used
in place of an error message to conserve memory footprint.
Table of atomized string objects. This provides an efficient means for the XML
parser to use the same string object for all repeated element and attribute
names in an XML document.
Initializes a new instance of the XmlNameTable class.
Gets the atomized string with the specified value.
The name to find.
The atomized string object or null if the string has not already been atomized.
Atomizes the specified string and adds it to the XmlNameTable.
The string to add.
The atomized string or the existing string if it already exists in the NameTable.
Specifies the type of node.
This is returned by the XmlReader if a Read method has not been called.
An element (for example, <item> ).
An attribute (for example, id='123' ).
The text content of a node.
A CDATA section (for example, <![CDATA[my escaped text]]> ).
A processing instruction (for example, <?pi test?> ).
A comment (for example, <!-- my comment --> ).
White space between markup.
White space between markup in a mixed content model or white space within
the xml:space="preserve" scope.
An end element tag (for example, </item> ).
The XML declaration (for example, <?xml version='1.0'?> ).
Represents a reader that provides fast, non-cached forward only stream access to XML data.
Gets the value of the attribute with the specified name.
The qualified name of the attribute.
The value of the specified attribute. If the attribute is not found, null is returned.
Gets the value of the attribute with the specified local name and namespace URI.
The local name of the attribute.
The namespace URI of the attribute.
The value of the specified attribute. If the attribute is not found, null is returned.
Gets the value of the attribute with the specified index.
The index of the attribute. The index is zero-based.
The value of the specified attribute.
Moves to the attribute with the specified name.
The qualified name of the attribute.
true if the attribute is found; otherwise, false.
Moves to the attribute with the specified local name and namespace URI.
The local name of the attribute.
The namespace URI of the attribute.
true if the attribute is found; otherwise, false.
Moves to the attribute with the specified index.
The index of the attribute.
Moves to the first attribute.
true if an attribute exists (the reader moves to the first attribute); otherwise, false.
Moves to the next attribute.
true if there is a next attribute; false if there are no more attributes.
Moves to the element that contains the current attribute node.
true if the reader is positioned on an attribute; false if the reader is not positioned on an attribute.
Reads the next node from the stream.
true if the next node was read successfully; false if there are no more nodes to read.
Closes the stream, changes the ReadState to Closed, and sets all the properties back to zero/empty string.
Skips the children of the current node.
Resolves a namespace prefix in the current element's scope.
The prefix whose namespace URI you want to resolve. To match the default namespace, pass an empty string.
The namespace URI to which the prefix maps or null if no matching prefix is found.
Reads the contents of an element or a text node as a string.
The contents of the element or text node.
Checks whether the current node is a content (non-white space text, CDATA,
Element, or EndElement) 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 type: ProcessingInstruction, Comment, Whitespace, or
SignificantWhitespace. If the current node is an attribute node, this method
moves the reader back to the element that owns the attribute.
The NodeType of the current node found by the method or XmlNodeType.
None if the reader has reached the end of the input stream.
Checks that the current node is an element and advances the reader to the next node.
Checks that the current content node is an element with the given Name and
advances the reader to the next node.
The qualified name of the element.
Checks that the current content node is an element with the given LocalName and
NamespaceURI and advances the reader to the next node.
The local name of the element.
The namespace URI of the element.
Reads a text-only element.
The text contained in the element that was read. An empty string
if the element is empty (<item></item> or <item/>).
Checks that the Name property of the element found matches the given string
before reading a text-only element.
The qualified name of the element.
The text contained in the element that was read. An empty string
if the element is empty (<item></item> or <item/>).
Checks that the LocalName and NamespaceURI properties of the element found
matches the given strings before reading a text-only element.
The local name of the element.
The namespace URI of the element.
The text contained in the element that was read. An empty string
if the element is empty (<item></item> or <item/>).
Checks that the current content node is an end tag and advances the reader
to the next node.
Calls MoveToContent and tests if the current content node is a start tag or
empty element tag.
true if MoveToContent finds a start tag or empty element tag;
false if a node type other than XmlNodeType.Element was found.
Calls MoveToContent and tests if the current content node is a start tag or
empty element tag and if the Name property of the element found matches the
given argument.
The qualified name of the element.
true if the resulting node is an element and the Name property
matches the specified string. false if a node type other than
XmlNodeType.Element was found or if the element Name property does not
match the specified string.
Calls MoveToContent and tests if the current content node is a start tag or
empty element tag and if the LocalName and NamespaceURI properties of the
element found match the given strings.
The local name of the element.
The namespace URI of the element.
true if the resulting node is an element. false if a node type other
than XmlNodeType.Element was found or if the LocalName and NamespaceURI
properties of the element do not match the specified strings.
Reads until an element with the specified qualified name is found.
The qualified name of the element.
true if a matching element is found; otherwise false and the
XmlReader is in an end of file state.
Reads until an element with the specified local name and namespace URI
is found.
The local name of the element.
The namespace URI of the element.
true if a matching element is found; otherwise false and the
XmlReader is in an end of file state.
Advances the XmlReader to the next descendant element with the specified
qualified name.
The qualified name of the element.
true if a matching descendant element is found; otherwise false.
If a matching child element is not found, the XmlReader is positioned on
the end tag (NodeType is XmlNodeType.EndElement) of the element.
If the XmlReader is not positioned on an element when ReadToDescendant
was called, this method returns false and the position of the XmlReader
is not changed.
Advances the XmlReader to the next descendant element with the specified
local name and namespace URI.
The local name of the element.
The namespace URI of the element.
true if a matching descendant element is found; otherwise false.
If a matching child element is not found, the XmlReader is positioned on
the end tag (NodeType is XmlNodeType.EndElement) of the element.
If the XmlReader is not positioned on an element when ReadToDescendant
was called, this method returns false and the position of the XmlReader
is not changed.
Advances the XmlReader to the next sibling element with the specified
qualified name.
The qualified name of the element.
true if a matching sibling element is found; otherwise false.
If a matching sibling element is not found, the XmlReader is positioned
on the end tag (NodeType is XmlNodeType.EndElement) of the parent
element.
Advances the XmlReader to the next sibling element with the specified
local name and namespace URI.
The local name of the element.
The namespace URI of the element.
true if a matching sibling element is found; otherwise false.
If a matching sibling element is not found, the XmlReader is positioned
on the end tag (NodeType is XmlNodeType.EndElement) of the parent
element.
Creates a new XmlReader instance using the specified stream.
The stream containing the XML data.
An XmlReader object used to read the data contained in the stream.
Creates a new XmlReader instance with the specified stream and
XmlReaderSettings object.
The stream containing the XML data.
The XmlReaderSettings object used to configure the new
XmlReader instance. This value can be null.
An XmlReader object to read the XML data.
Gets the type of the current node.
Gets the name of the current node, including the namespace prefix.
Gets the name of the current node without the namespace prefix.
Gets the namespace URI (as defined in the W3C Namespace specification) of
the node on which the reader is positioned.
Gets the namespace prefix associated with the current node.
Gets a value indicating whether the current node can have a Value other
than String.Empty.
Gets the text value of the current node.
Gets the depth of the current node in the XML element stack.
Gets a value indicating whether the current node is an empty element
(for example, <MyElement/>).
Gets the current xml:space scope.
Gets the current xml:lang scope.
Gets the number of attributes on the current node.
Gets a value indicating whether the reader is positioned at the end of the stream.
Gets the state of the reader.
Gets the XmlNameTable associated with the XmlReader.
Gets a value indicating whether the current node has any attributes.
Specifies a set of features to support on the XmlReader object created
by the Create method.
Gets or sets the XmlNameTable used for atomized string comparisons.
Gets or sets a value indicating whether to ignore insignificant
white space.
Gets or sets a value indicating whether to ignore processing
instructions.
Gets or sets a value indicating whether to ignore comments.
Initializes a new instance of the XmlReaderSettings class.
Specifies the current xml:space scope.
No xml:space scope.
The xml:space scope is "default".
The xml:space scope is "preserve".