.NET Framework Class Library
XmlReader Methods
Public Methods
(see also
Protected Methods
)
| Name | Description | |
|---|---|---|
| Close | When overridden in a derived class, changes the ReadState to Closed. |
| Create | Overloaded. Creates a new XmlReader instance. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetAttribute | Overloaded. When overridden in a derived class, gets the value of an attribute. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| IsName | Gets a value indicating whether the string argument is a valid XML name. |
| IsNameToken | Gets a value indicating whether or not the string argument is a valid XML name token. |
| IsStartElement | Overloaded. Tests if the current content node is a start tag. |
| LookupNamespace | When overridden in a derived class, resolves a namespace prefix in the current element's scope. |
| MoveToAttribute | Overloaded. When overridden in a derived class, moves to the specified attribute. |
| 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. |
| ReadAttributeValue | When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes. |
| ReadContentAs | Reads the content as an object of the type specified. |
| ReadContentAsBase64 | Reads the content and returns the Base64 decoded binary bytes. |
| ReadContentAsBinHex | Reads the content and returns the BinHex decoded binary bytes. |
| ReadContentAsBoolean | Reads the text content at the current position as a Boolean. |
| ReadContentAsDateTime | Reads the text content at the current position as a DateTime object. |
| ReadContentAsDecimal | Reads the text content at the current position as a Decimal object. |
| ReadContentAsDouble | Reads the text content at the current position as a double-precision floating-point number. |
| ReadContentAsFloat | Reads the text content at the current position as a single-precision floating point number. |
| ReadContentAsInt | Reads the text content at the current position as a 32-bit signed integer. |
| ReadContentAsLong | Reads the text content at the current position as a 64-bit signed integer. |
| ReadContentAsObject | Reads the text content at the current position as an Object. |
| ReadContentAsString | Reads the text content at the current position as a String object. |
| ReadElementContentAs | Overloaded. Reads the current element and returns the contents as an object of the type specified. |
| ReadElementContentAsBase64 | Reads the element and decodes the Base64 content. |
| ReadElementContentAsBinHex | Reads the element and decodes the BinHex content. |
| ReadElementContentAsBoolean | Overloaded. Reads the current element value as a Boolean object. |
| ReadElementContentAsDateTime | Overloaded. Reads the current element and returns the contents as a DateTime object. |
| ReadElementContentAsDecimal | Overloaded. Reads the current element value as a Decimal object. |
| ReadElementContentAsDouble | Overloaded. Reads the current element and returns the contents as a double-precision floating-point number. |
| ReadElementContentAsFloat | Overloaded. Reads the current element value as a single-precision floating-point number. |
| ReadElementContentAsInt | Overloaded. Reads the current element and returns the contents as a 32-bit signed integer. |
| ReadElementContentAsLong | Overloaded. Reads the current element and returns the contents as a 64-bit signed integer. |
| ReadElementContentAsObject | Overloaded. Reads the current element and returns the contents as an Object. |
| ReadElementContentAsString | Overloaded. Reads the current element and returns the contents as a String object. |
| ReadElementString | Overloaded. 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 | When overridden in a derived class, reads all the content, including markup, as a string. |
| ReadOuterXml | When overridden in a derived class, reads the content, including markup, representing this node and all its children. |
| ReadStartElement | Overloaded. Checks that the current node is an element 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. |
| ReadSubtree | Returns a new XmlReader instance that can be used to read the current node, and all its descendants. |
| ReadToDescendant | Overloaded. Advances the XmlReader to the next matching descendant element. |
| ReadToFollowing | Overloaded. Reads until the named element is found. |
| ReadToNextSibling | Overloaded. Advances the XmlReader to the next matching sibling element. |
| ReadValueChunk | Reads large streams of text embedded in an XML document. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ResolveEntity | When overridden in a derived class, resolves the entity reference for EntityReference nodes. |
| Skip | Skips the children of the current node. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| Dispose | Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources. |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| System.IDisposable.Dispose | For a description of this member, see IDisposable.Dispose. |
See Also
Reference
XmlReader ClassSystem.Xml Namespace
Other Resources
XML Documents and DataSecurity and Your System.Xml Applications