Поделиться через


OpenXmlReader Members

Include Protected Members
Include Inherited Members

Defines the OpenXmlReader.

The OpenXmlReader type exposes the following members.

Constructors

  Name Description
Protected method OpenXmlReader() Initializes a new instance of the OpenXmlReader.
Protected method OpenXmlReader(Boolean) Initializes a new instance of the OpenXmlReader.

Top

Properties

  Name Description
Public property Attributes Gets the list of attributes of the current element
Public property Depth Gets the depth of the current node in the XML document. The depth of the root element is 0.
Public property ElementType Gets the type of the corresponding strong typed class of the current element.
Public property Encoding Gets the encoding of the XML file.
Public property EOF When overridden in a derived class, gets a value indicating whether the reader is positioned at the end of the stream.
Public property HasAttributes Gets a value indicating whether the current node has any attributes.
Public property IsEndElement When overridden in a derived class, gets a value indicating whether the current node is an element end.
Public property IsMiscNode When overridden in a derived class, gets a value indicating whether the current node is an misc XML node (non element).
Public property IsStartElement When overridden in a derived class, gets a value indicating whether the current node is an element start.
Public property LocalName When overridden in a derived class, gets the local name of the current node.
Public property NamespaceDeclarations Gets the namespace declarations in the current element.
Public property NamespaceUri 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 property Prefix When overridden in a derived class, gets the namespace prefix associated with the current node.
Public property ReadMiscNodes Get a value indicating whether the OpenXmlReader will read (or skip) all miscellaneous nodes.
Public property StandaloneXml Gets the standalone property in the XML declaration of the XML stream. Default is null.

Top

Methods

  Name Description
Public method Close Close the reader.
Public methodStatic member Create(Stream) Create an OpenXmlReader from the part stream
Public methodStatic member Create(OpenXmlElement) Create an OpenXmlReader from the OpenXmlElement (travel the DOM tree).
Public methodStatic member Create(OpenXmlPart) Create an OpenXmlReader from the OpenXmlPart.
Public methodStatic member Create(Stream, Boolean) Create an OpenXmlReader from the part stream
Public methodStatic member Create(OpenXmlElement, Boolean) Create an OpenXmlReader from the OpenXmlElement (travel the DOM tree).
Public methodStatic member Create(OpenXmlPart, Boolean) Create an OpenXmlReader from the OpenXmlPart.
Public method Dispose() Closes the reader, and releases all resources.
Protected method Dispose(Boolean) Closes the reader, and releases all resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetText Gets the text of the element if the element is OpenXmlLeafTextElement. Return String.Empry for other elements.
Public method GetType (Inherited from Object.)
Public method LoadCurrentElement Load the element at current cursor.
Protected method MemberwiseClone (Inherited from Object.)
Public method Read Move to next element.
Public method ReadFirstChild Move to first child.
Public method ReadNextSibling Move to next sibling element.
Public method Skip Skips the children of the current node.
Protected method ThrowIfObjectDisposed Throw if object is disposed.
Public method ToString (Inherited from Object.)

Top

See Also

Reference

OpenXmlReader Class

DocumentFormat.OpenXml Namespace