Click or drag to resize
XmlReader Class
Represents a reader that provides fast, noncached, forward-only access to XML data.
Inheritance Hierarchy
SystemObject
  System.XmlXmlReader

Namespace: System.Xml
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public abstract class XmlReader : IDisposable

The XmlReader type exposes the following members.

Constructors
  NameDescription
Protected methodXmlReader
Initializes a new instance of the XmlReader class.
Top
Methods
  NameDescription
Public methodStatic memberCreate(Stream)
Creates a new System.Xml.XmlReader instance using the specified stream.
Public methodStatic memberCreate(String)
Creates a new System.Xml.XmlReader instance with specified URI.
Public methodStatic memberCreate(TextReader)
Creates a new System.Xml.XmlReader instance with the specified System.IO.TextReader.
Public methodStatic memberCreate(Stream, XmlReaderSettings)
Creates a new System.Xml.XmlReader instance with the specified stream and System.Xml.XmlReaderSettings object.
Public methodStatic memberCreate(String, XmlReaderSettings)
Creates a new instance with the specified URI and System.Xml.XmlReaderSettings.
Public methodStatic memberCreate(TextReader, XmlReaderSettings)
Creates a new XmlReader instance using the specified TextReader and XmlReaderSettings objects.
Public methodStatic memberCreate(XmlReader, XmlReaderSettings)
Creates a new XmlReader instance with the specified XmlReader and XmlReaderSettings objects.
Public methodStatic memberCreate(Stream, XmlReaderSettings, String)
Creates a new XmlReader instance using the specified stream, base URI, and XmlReaderSettings object.
Public methodStatic memberCreate(Stream, XmlReaderSettings, XmlParserContext)
Creates a new XmlReader instance using the specified stream, XmlReaderSettings, and XmlParserContext objects.
Public methodStatic memberCreate(String, XmlReaderSettings, XmlParserContext)
Creates a new XmlReader instance using the specified URI, XmlReaderSettings, and XmlParserContext objects.
Public methodStatic memberCreate(TextReader, XmlReaderSettings, String)
Creates a new XmlReader instance using the specified TextReader, XmlReaderSettings, and base URI.
Public methodStatic memberCreate(TextReader, XmlReaderSettings, XmlParserContext)
Creates a new XmlReader instance using the specified TextReader, XmlReaderSettings, and XmlParserContext objects.
Public methodDispose
Releases all resources used by the XmlReader
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetAttribute(Int32)
When overridden in a derived class, gets the value of the attribute with the specified index.
Public methodGetAttribute(String)
When overridden in a derived class, gets the value of the attribute with the specified Name.
Public methodGetAttribute(String, String)
When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsStartElement
Calls MoveToContent and tests if the current content node is a start tag or empty element tag.
Public methodIsStartElement(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.
Public methodIsStartElement(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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveToContent
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.
Public methodMoveToElement
When overridden in a derived class, moves to the element that contains the current attribute node.
Public methodMoveToFirstAttribute
When overridden in a derived class, moves to the first attribute.
Public methodMoveToNextAttribute
When overridden in a derived class, moves to the next attribute.
Public methodRead
When overridden in a derived class, reads the next node from the stream.
Public methodReadContentAsString
Reads the text content at the current position as a String object.
Public methodReadElementContentAsString
Reads the current element and returns the contents as a String object.
Public methodReadElementContentAsString(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.
Public methodReadElementString
Reads a text-only element.
Public methodReadElementString(String)
Checks that the Name property of the element found matches the given string before reading a text-only element.
Public methodReadElementString(String, String)
Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element.
Public methodReadEndElement
Checks that the current content node is an end tag and advances the reader to the next node.
Public methodReadStartElement
Checks that the current node is an element and advances the reader to the next node.
Public methodReadStartElement(String)
Checks that the current content node is an element with the given Name and advances the reader to the next node.
Public methodReadStartElement(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.
Public methodReadString
When overridden in a derived class, reads the contents of an element or text node as a string.
Public methodReadToFollowing(String)
Reads until an element with the specified qualified name is found.
Public methodReadToFollowing(String, String)
Reads until an element with the specified local name and namespace URI is found.
Public methodReadToNextSibling(String)
Advances the XmlReader to the next sibling element with the specified qualified name.
Public methodReadToNextSibling(String, String)
Advances the XmlReader to the next sibling element with the specified local name and namespace URI.
Public methodSkip
Skips the children of the current node.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAttributeCount
When overridden in a derived class, gets the number of attributes on the current node.
Public propertyIsEmptyElement
When overridden in a derived class, gets a value indicating whether the current node is an empty element (for example, ).
Public propertyLocalName
When overridden in a derived class, gets the local name of the current node.
Public propertyName
When overridden in a derived class, gets the qualified name of the current node.
Public propertyNamespaceURI
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.
Public propertyNameTable
When overridden in a derived class, gets the System.Xml.XmlNameTable associated with this implementation.
Public propertyNodeType
When overridden in a derived class, gets the type of the current node.
Public propertyValue
When overridden in a derived class, gets the text value of the current node.
Top
See Also