Click or drag to resize

OpenXmlDomReader Class

Represents the Open XML document reader class.
Inheritance Hierarchy
SystemObject
  DocumentFormat.OpenXmlOpenXmlReader
    DocumentFormat.OpenXmlOpenXmlDomReader

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public class OpenXmlDomReader : OpenXmlReader

The OpenXmlDomReader type exposes the following members.

Constructors
 NameDescription
Public methodOpenXmlDomReader(OpenXmlElement) Initializes a new instance of the OpenXmlDomReader class.
Public methodOpenXmlDomReader(OpenXmlElement, Boolean) Initializes a new instance of the OpenXmlDomReader class using the supplied OpenXmlElement and Boolean values.
Top
Properties
 NameDescription
Public propertyAttributes Gets the list of attributes of the current element.
(Overrides OpenXmlReaderAttributes)
Public propertyDepth Gets the depth of the current node in the XML document. The depth of the root element is 0.
(Overrides OpenXmlReaderDepth)
Public propertyElementType Gets the type of the corresponding strong typed class of the current element.
(Overrides OpenXmlReaderElementType)
Public propertyEncoding Gets the encoding of the XML file.
(Inherited from OpenXmlReader)
Public propertyEOF Gets a value indicating whether the reader is positioned at the end of the stream.
(Overrides OpenXmlReaderEOF)
Public propertyHasAttributes Gets a value indicating whether the current node has any attributes.
(Inherited from OpenXmlReader)
Public propertyIsEndElement Gets a value indicating whether the current node is an element end.
(Overrides OpenXmlReaderIsEndElement)
Public propertyIsMiscNode Gets a value indicating whether the current node is a miscellaneous XML node (non element).
(Overrides OpenXmlReaderIsMiscNode)
Public propertyIsStartElement Gets a value indicating whether the current node is an element start.
(Overrides OpenXmlReaderIsStartElement)
Public propertyLocalName Gets the local name of the current node.
(Overrides OpenXmlReaderLocalName)
Public propertyNamespaceDeclarations Gets the namespace declarations of the current element.
(Overrides OpenXmlReaderNamespaceDeclarations)
Public propertyNamespaceUri Gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.
(Overrides OpenXmlReaderNamespaceUri)
Public propertyPrefix Gets the namespace prefix associated with the current node.
(Overrides OpenXmlReaderPrefix)
Public propertyReadMiscNodes Gets a value indicating whether the OpenXmlReader will read or skip all miscellaneous nodes.
(Inherited from OpenXmlReader)
Public propertyStandaloneXml Gets the standalone property in the XML declaration of the XML stream. The default value is null.
(Inherited from OpenXmlReader)
Top
Methods
 NameDescription
Public methodClose Closes the reader.
(Overrides OpenXmlReaderClose)
Public methodDispose Closes the reader, and releases all resources.
(Inherited from OpenXmlReader)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLineInfo Gets an instance of IXmlLineInfo if available for the current reader.
(Inherited from OpenXmlReader)
Public methodGetText Gets the text of the element if the element is an OpenXmlLeafTextElement. Returns String.Empty for other elements.
(Overrides OpenXmlReaderGetText)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLoadCurrentElement Loads the element at current cursor.
(Overrides OpenXmlReaderLoadCurrentElement)
Public methodRead Moves to read the next element.
(Overrides OpenXmlReaderRead)
Public methodReadFirstChild Moves to read the first child element.
(Overrides OpenXmlReaderReadFirstChild)
Public methodReadNextSibling Moves to read the next sibling element.
(Overrides OpenXmlReaderReadNextSibling)
Public methodSkip Skips the child elements of the current node.
(Overrides OpenXmlReaderSkip)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also