XmlReader Methods
TOC
Collapse the table of content
Expand the table of content

XmlReader Methods

 

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

NameDescription
System_CAPS_pubmethodClose()

When overridden in a derived class, changes the ReadState to Closed.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Stream)

Creates a new XmlReader instance using the specified stream with default settings.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Stream, XmlReaderSettings)

Creates a new XmlReader instance with the specified stream and settings.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Stream, XmlReaderSettings, String)

Creates a new XmlReader instance using the specified stream, base URI, and settings.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Stream, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance using the specified stream, settings, and context information for parsing.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String)

Creates a new XmlReader instance with specified URI.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, XmlReaderSettings)

Creates a new XmlReaderinstance by using the specified URI and settings.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance by using the specified URI, settings, and context information for parsing.

System_CAPS_pubmethodSystem_CAPS_staticCreate(TextReader)

Creates a new XmlReader instance by using the specified text reader.

System_CAPS_pubmethodSystem_CAPS_staticCreate(TextReader, XmlReaderSettings)

Creates a new XmlReader instance by using the specified text reader and settings.

System_CAPS_pubmethodSystem_CAPS_staticCreate(TextReader, XmlReaderSettings, String)

Creates a new XmlReader instance by using the specified text reader, settings, and base URI.

System_CAPS_pubmethodSystem_CAPS_staticCreate(TextReader, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance by using the specified text reader, settings, and context information for parsing.

System_CAPS_pubmethodSystem_CAPS_staticCreate(XmlReader, XmlReaderSettings)

Creates a new XmlReader instance by using the specified XML reader and settings.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the XmlReader class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetAttribute(Int32)

When overridden in a derived class, gets the value of the attribute with the specified index.

System_CAPS_pubmethodGetAttribute(String)

When overridden in a derived class, gets the value of the attribute with the specified Name.

System_CAPS_pubmethodGetAttribute(String, String)

When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetValueAsync()

Asynchronously gets the value of the current node.

System_CAPS_pubmethodSystem_CAPS_staticIsName(String)

Returns a value indicating whether the string argument is a valid XML name.

System_CAPS_pubmethodSystem_CAPS_staticIsNameToken(String)

Returns a value indicating whether or not the string argument is a valid XML name token.

System_CAPS_pubmethodIsStartElement()

Calls MoveToContent and tests if the current content node is a start tag or empty element tag.

System_CAPS_pubmethodIsStartElement(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.

System_CAPS_pubmethodIsStartElement(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.

System_CAPS_pubmethodLookupNamespace(String)

When overridden in a derived class, resolves a namespace prefix in the current element's scope.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodMoveToAttribute(Int32)

When overridden in a derived class, moves to the attribute with the specified index.

System_CAPS_pubmethodMoveToAttribute(String)

When overridden in a derived class, moves to the attribute with the specified Name.

System_CAPS_pubmethodMoveToAttribute(String, String)

When overridden in a derived class, moves to the attribute with the specified LocalName and NamespaceURI.

System_CAPS_pubmethodMoveToContent()

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.

System_CAPS_pubmethodMoveToContentAsync()

Asynchronously checks whether the current node is a content node. If the node is not a content node, the reader skips ahead to the next content node or end of file.

System_CAPS_pubmethodMoveToElement()

When overridden in a derived class, moves to the element that contains the current attribute node.

System_CAPS_pubmethodMoveToFirstAttribute()

When overridden in a derived class, moves to the first attribute.

System_CAPS_pubmethodMoveToNextAttribute()

When overridden in a derived class, moves to the next attribute.

System_CAPS_pubmethodRead()

When overridden in a derived class, reads the next node from the stream.

System_CAPS_pubmethodReadAsync()

Asynchronously reads the next node from the stream.

System_CAPS_pubmethodReadAttributeValue()

When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.

System_CAPS_pubmethodReadContentAs(Type, IXmlNamespaceResolver)

Reads the content as an object of the type specified.

System_CAPS_pubmethodReadContentAsAsync(Type, IXmlNamespaceResolver)

Asynchronously reads the content as an object of the type specified.

System_CAPS_pubmethodReadContentAsBase64(Byte[], Int32, Int32)

Reads the content and returns the Base64 decoded binary bytes.

System_CAPS_pubmethodReadContentAsBase64Async(Byte[], Int32, Int32)

Asynchronously reads the content and returns the Base64 decoded binary bytes.

System_CAPS_pubmethodReadContentAsBinHex(Byte[], Int32, Int32)

Reads the content and returns the BinHex decoded binary bytes.

System_CAPS_pubmethodReadContentAsBinHexAsync(Byte[], Int32, Int32)

Asynchronously reads the content and returns the BinHex decoded binary bytes.

System_CAPS_pubmethodReadContentAsBoolean()

Reads the text content at the current position as a Boolean.

System_CAPS_pubmethodReadContentAsDateTime()

Reads the text content at the current position as a DateTime object.

System_CAPS_pubmethodReadContentAsDateTimeOffset()

Reads the text content at the current position as a DateTimeOffset object.

System_CAPS_pubmethodReadContentAsDecimal()

Reads the text content at the current position as a Decimal object.

System_CAPS_pubmethodReadContentAsDouble()

Reads the text content at the current position as a double-precision floating-point number.

System_CAPS_pubmethodReadContentAsFloat()

Reads the text content at the current position as a single-precision floating point number.

System_CAPS_pubmethodReadContentAsInt()

Reads the text content at the current position as a 32-bit signed integer.

System_CAPS_pubmethodReadContentAsLong()

Reads the text content at the current position as a 64-bit signed integer.

System_CAPS_pubmethodReadContentAsObject()

Reads the text content at the current position as an Object.

System_CAPS_pubmethodReadContentAsObjectAsync()

Asynchronously reads the text content at the current position as an Object.

System_CAPS_pubmethodReadContentAsString()

Reads the text content at the current position as a String object.

System_CAPS_pubmethodReadContentAsStringAsync()

Asynchronously reads the text content at the current position as a String object.

System_CAPS_pubmethodReadElementContentAs(Type, IXmlNamespaceResolver)

Reads the element content as the requested type.

System_CAPS_pubmethodReadElementContentAs(Type, IXmlNamespaceResolver, String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the element content as the requested type.

System_CAPS_pubmethodReadElementContentAsAsync(Type, IXmlNamespaceResolver)

Asynchronously reads the element content as the requested type.

System_CAPS_pubmethodReadElementContentAsBase64(Byte[], Int32, Int32)

Reads the element and decodes the Base64 content.

System_CAPS_pubmethodReadElementContentAsBase64Async(Byte[], Int32, Int32)

Asynchronously reads the element and decodes theBase64 content.

System_CAPS_pubmethodReadElementContentAsBinHex(Byte[], Int32, Int32)

Reads the element and decodes the BinHex content.

System_CAPS_pubmethodReadElementContentAsBinHexAsync(Byte[], Int32, Int32)

Asynchronously reads the element and decodes the BinHex content.

System_CAPS_pubmethodReadElementContentAsBoolean()

Reads the current element and returns the contents as a Boolean object.

System_CAPS_pubmethodReadElementContentAsBoolean(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 Boolean object.

System_CAPS_pubmethodReadElementContentAsDateTime()

Reads the current element and returns the contents as a DateTime object.

System_CAPS_pubmethodReadElementContentAsDateTime(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 DateTime object.

System_CAPS_pubmethodReadElementContentAsDecimal()

Reads the current element and returns the contents as a Decimal object.

System_CAPS_pubmethodReadElementContentAsDecimal(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 Decimal object.

System_CAPS_pubmethodReadElementContentAsDouble()

Reads the current element and returns the contents as a double-precision floating-point number.

System_CAPS_pubmethodReadElementContentAsDouble(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 double-precision floating-point number.

System_CAPS_pubmethodReadElementContentAsFloat()

Reads the current element and returns the contents as single-precision floating-point number.

System_CAPS_pubmethodReadElementContentAsFloat(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 single-precision floating-point number.

System_CAPS_pubmethodReadElementContentAsInt()

Reads the current element and returns the contents as a 32-bit signed integer.

System_CAPS_pubmethodReadElementContentAsInt(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 32-bit signed integer.

System_CAPS_pubmethodReadElementContentAsLong()

Reads the current element and returns the contents as a 64-bit signed integer.

System_CAPS_pubmethodReadElementContentAsLong(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 64-bit signed integer.

System_CAPS_pubmethodReadElementContentAsObject()

Reads the current element and returns the contents as an Object.

System_CAPS_pubmethodReadElementContentAsObject(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 an Object.

System_CAPS_pubmethodReadElementContentAsObjectAsync()

Asynchronously reads the current element and returns the contents as an Object.

System_CAPS_pubmethodReadElementContentAsString()

Reads the current element and returns the contents as a String object.

System_CAPS_pubmethodReadElementContentAsString(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.

System_CAPS_pubmethodReadElementContentAsStringAsync()

Asynchronously reads the current element and returns the contents as a String object.

System_CAPS_pubmethodReadElementString()

Reads a text-only element. However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

System_CAPS_pubmethodReadElementString(String)

Checks that the Name property of the element found matches the given string before reading a text-only element. However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

System_CAPS_pubmethodReadElementString(String, String)

Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element. However, we recommend that you use the ReadElementContentAsString(String, String) method instead, because it provides a more straightforward way to handle this operation.

System_CAPS_pubmethodReadEndElement()

Checks that the current content node is an end tag and advances the reader to the next node.

System_CAPS_pubmethodReadInnerXml()

When overridden in a derived class, reads all the content, including markup, as a string.

System_CAPS_pubmethodReadInnerXmlAsync()

Asynchronously reads all the content, including markup, as a string.

System_CAPS_pubmethodReadOuterXml()

When overridden in a derived class, reads the content, including markup, representing this node and all its children.

System_CAPS_pubmethodReadOuterXmlAsync()

Asynchronously reads the content, including markup, representing this node and all its children.

System_CAPS_pubmethodReadStartElement()

Checks that the current node is an element and advances the reader to the next node.

System_CAPS_pubmethodReadStartElement(String)

Checks that the current content node is an element with the given Name and advances the reader to the next node.

System_CAPS_pubmethodReadStartElement(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.

System_CAPS_pubmethodReadString()

When overridden in a derived class, reads the contents of an element or text node as a string. However, we recommend that you use the ReadElementContentAsString method instead, because it provides a more straightforward way to handle this operation.

System_CAPS_pubmethodReadSubtree()

Returns a new XmlReader instance that can be used to read the current node, and all its descendants.

System_CAPS_pubmethodReadToDescendant(String)

Advances the XmlReader to the next descendant element with the specified qualified name.

System_CAPS_pubmethodReadToDescendant(String, String)

Advances the XmlReader to the next descendant element with the specified local name and namespace URI.

System_CAPS_pubmethodReadToFollowing(String)

Reads until an element with the specified qualified name is found.

System_CAPS_pubmethodReadToFollowing(String, String)

Reads until an element with the specified local name and namespace URI is found.

System_CAPS_pubmethodReadToNextSibling(String)

Advances the XmlReader to the next sibling element with the specified qualified name.

System_CAPS_pubmethodReadToNextSibling(String, String)

Advances the XmlReader to the next sibling element with the specified local name and namespace URI.

System_CAPS_pubmethodReadValueChunk(Char[], Int32, Int32)

Reads large streams of text embedded in an XML document.

System_CAPS_pubmethodReadValueChunkAsync(Char[], Int32, Int32)

Asynchronously reads large streams of text embedded in an XML document.

System_CAPS_pubmethodResolveEntity()

When overridden in a derived class, resolves the entity reference for EntityReference nodes.

System_CAPS_pubmethodSkip()

Skips the children of the current node.

System_CAPS_pubmethodSkipAsync()

Asynchronously skips the children of the current node.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show:
© 2016 Microsoft