NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNode Class

The XmlNode class is the abstract base class of all XML node classes.

Object
   XmlNode

[Visual Basic]
MustInherit Public Class XmlNode
   Implements ICloneable
[C#]
public abstract class XmlNode : ICloneable
[C++]
public __gc __abstract class XmlNode : public ICloneable
[JScript]
public abstract class XmlNode implements ICloneable

Remarks

The XmlNode class cannot be instantiated, and is not intended to be derived from by user-written classes.

The following classes are derived from XmlNode:

Class Remarks
XmlContainer Represents an XML node that can contain child nodes. The XmlDocument and XmlElement classes derive from this abstract base class.
XmlDocument Represents an XML document. The Root property can be used to access the root element of the document.
XmlElement Represents an XML element such as
XmlText Represents text occuring between elements.
XmlCData Represents an XML character data element of the form
XmlComment Represents an XML comment element of the form
XmlPI Represents an XML processing instruction such as
XmlHeader Represents an XML document header such as
XmlDocType Represents an XML document type declaration such as

Every XmlNode instance belongs to a particular XmlContext. Within an XML context, all identifiers with the same name and namespace URI are represented by the same XmlIdent instance, such that identifiers can be compared for equality by simply comparing object references.

The XmlNode classes have no public constructors. Instead, instances of the XmlNode classes are created by the

The ReadNode method creates a tree of XmlNode instances from an XML text representation.

The WriteNode method creates the XML text representation of a tree of XmlNode instances.

The XmlNodeReader class is used to read an XmlNode tree sequentially.

The XmlNodeWriter class is used to create an XmlNode tree from a series of sequential write operations.

Languages that support a

Requirements

Namespace: System.Xml

Assembly: System.dll

See Also

XmlNode Members | System.Xml Namespace | XmlContainer | XmlDocument | XmlElement | XmlText | XmlCData | XmlComment | XmlPI | XmlHeader | XmlDocType