XmlReader Methods

Public Methods

Name Description
Public Method Close Closes the stream, changes the ReadState to Closed, and sets all properties back to zero/empty string.
Public Method Static Create Overloaded. Creates a new XmlReader instance.
Public Method Dispose Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.
Public Method Equals (Inherited from Object.)
Public Method GetAttribute Overloaded. Gets the value of an attribute.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Static IsName Gets a value indicating whether the string argument is a valid XML name.
Public Method Static IsNameToken Gets a value indicating whether or not the string argument is a valid XML name token.
Public Method IsStartElement Overloaded. Tests the current content node to determine whether it is a start tag or empty tag; also tests property and string matches.
Public Method LookupNamespace Resolves a namespace prefix in the current element's scope.
Public Method MoveToAttribute Overloaded. Moves to the specified attribute.
Public Method MoveToContent Checks to find whether the current node is a content node.
Public Method MoveToElement Moves to the element that contains the current attribute node.
Public Method MoveToFirstAttribute Moves to the first attribute of the current node.
Public Method MoveToNextAttribute Moves to the next attribute.
Public Method Read Moves through the Stream and reads the next node from the stream.
Public Method ReadAttributeValue Parses the attribute value into one or more Text and/or EntityReference node types.
Public Method ReadContentAsBase64 Reads the content and returns the Base64 decoded binary bytes.
Public Method ReadContentAsBinHex Reads the content and returns the BinHex decoded binary bytes.
Public Method ReadContentAsObject Reads the text content at the current position as an Object.
Public Method ReadElementContentAsBase64 Reads the element and decodes the Base64 content.
Public Method ReadElementContentAsBinHex Reads the element and decodes the BinHex content.
Public Method ReadElementString Overloaded. This is a helper method for reading simple text-only elements.
Public Method ReadEndElement Checks to find that the current content node is an end tag and advances the reader to the next node.
Public Method ReadStartElement Overloaded. Checks to find whether the current node is an element and advances the reader to the next node.
Public Method ReadString Reads the contents of an element or text node as a string.
Public Method ReadToDescendant Overloaded. Advances the XmlReader to the next matching descendant element.
Public Method ReadToFollowing Overloaded. Reads until the named element is found.
Public Method ReadToNextSibling Overloaded. Advances the xmlReader to the next matching sibling element.
Public Method ReadValueChunk Reads large streams of text embedded in an XML document.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ResolveEntity Resolves the entity reference for EntityReference nodes.
Public Method Skip Skips to the end tag of the current element.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

XmlReader Class
System.Xml Namespace