XmlReader Class |
Namespace: System.Xml
public abstract class XmlReader : IDisposable
The XmlReader type exposes the following members.
Name | Description | |
---|---|---|
Create(Stream) |
Creates a new System.Xml.XmlReader instance using the specified stream.
| |
Create(String) |
Creates a new System.Xml.XmlReader instance with specified URI.
| |
Create(TextReader) |
Creates a new System.Xml.XmlReader instance with the specified System.IO.TextReader.
| |
Create(Stream, XmlReaderSettings) |
Creates a new System.Xml.XmlReader instance with the specified stream and
System.Xml.XmlReaderSettings object.
| |
Create(String, XmlReaderSettings) |
Creates a new instance with the specified URI and System.Xml.XmlReaderSettings.
| |
Create(TextReader, XmlReaderSettings) | ||
Create(XmlReader, XmlReaderSettings) | ||
Create(Stream, XmlReaderSettings, String) | Creates a new XmlReader instance using the specified stream, base URI, and XmlReaderSettings object. | |
Create(Stream, XmlReaderSettings, XmlParserContext) | Creates a new XmlReader instance using the specified stream, XmlReaderSettings, and XmlParserContext objects. | |
Create(String, XmlReaderSettings, XmlParserContext) | Creates a new XmlReader instance using the specified URI, XmlReaderSettings, and XmlParserContext objects. | |
Create(TextReader, XmlReaderSettings, String) | ||
Create(TextReader, XmlReaderSettings, XmlParserContext) | Creates a new XmlReader instance using the specified TextReader, XmlReaderSettings, and XmlParserContext objects. | |
Dispose | Releases all resources used by the XmlReader | |
Dispose(Boolean) | Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources. | |
Equals(Object) | (Inherited from Object.) | |
GetAttribute(Int32) | When overridden in a derived class, gets the value of the attribute with the specified index. | |
GetAttribute(String) | When overridden in a derived class, gets the value of the attribute with the specified Name. | |
GetAttribute(String, String) | When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsStartElement | Calls MoveToContent and tests if the current content node is a start tag or empty element tag. | |
IsStartElement(String) | 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. | |
IsStartElement(String, 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. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveToContent | Checks whether the current node is a content (non-white 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 type: ProcessingInstruction, DocumentType, Comment, Whitespace, or SignificantWhitespace. | |
MoveToElement | When overridden in a derived class, moves to the element that contains the current attribute node. | |
MoveToFirstAttribute | When overridden in a derived class, moves to the first attribute. | |
MoveToNextAttribute | When overridden in a derived class, moves to the next attribute. | |
Read | When overridden in a derived class, reads the next node from the stream. | |
ReadContentAsString | Reads the text content at the current position as a String object. | |
ReadElementContentAsString | Reads the current element and returns the contents as a String object. | |
ReadElementContentAsString(String, String) | Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a String object. | |
ReadElementString | Reads a text-only element. | |
ReadElementString(String) | Checks that the Name property of the element found matches the given string before reading a text-only element. | |
ReadElementString(String, String) | Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element. | |
ReadEndElement | Checks that the current content node is an end tag and advances the reader to the next node. | |
ReadStartElement | Checks that the current node is an element and advances the reader to the next node. | |
ReadStartElement(String) | Checks that the current content node is an element with the given Name and advances the reader to the next node. | |
ReadStartElement(String, String) | Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node. | |
ReadString | When overridden in a derived class, reads the contents of an element or text node as a string. | |
ReadToFollowing(String) | Reads until an element with the specified qualified name is found. | |
ReadToFollowing(String, String) | Reads until an element with the specified local name and namespace URI is found. | |
ReadToNextSibling(String) | Advances the XmlReader to the next sibling element with the specified qualified name. | |
ReadToNextSibling(String, String) | Advances the XmlReader to the next sibling element with the specified local name and namespace URI. | |
Skip | Skips the children of the current node. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AttributeCount |
When overridden in a derived class, gets the number of attributes on the
current node.
| |
IsEmptyElement |
When overridden in a derived class, gets a value indicating whether the current
node is an empty element (for example, ).
| |
LocalName |
When overridden in a derived class, gets the local name of the current node.
| |
Name |
When overridden in a derived class, gets the qualified name of the current
node.
| |
NamespaceURI |
When overridden in a derived class, gets the namespace URI (as defined in
the W3C Namespace specification) of the node on which the reader is positioned.
| |
NameTable |
When overridden in a derived class, gets the System.Xml.XmlNameTable associated
with this implementation.
| |
NodeType |
When overridden in a derived class, gets the type of the current node.
| |
Value |
When overridden in a derived class, gets the text value of the current node.
|