System.Xml.XmlNode Members

The members of System.Xml.XmlNode are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
AttributesXmlAttributeCollection.

Gets an System.Xml.XmlAttributeCollection containing the attributes of this node.

[read-only]
BaseURIstring.

Gets the base URI of the current node.

[read-only]
ChildNodesXmlNodeList.

Gets all the child nodes of the node.

[read-only]
FirstChildXmlNode.

Gets the first child of the node.

[read-only]
HasChildNodesbool.

Gets a value indicating whether this node has any child nodes.

InnerTextstring.

Gets or sets the concatenated values of the node and all its child nodes.

InnerXmlstring.

Gets or sets the markup representing only the child nodes of this node.

[read-only]
IsReadOnlybool.

Gets a value indicating whether the node is read-only.

[read-only]
default property
Item(string)XmlElement. Gets the child element with the given name.
[read-only]
default property
Item(string, string)XmlElement. Gets the child element with the given local name and namespace URI.
[read-only]
LastChildXmlNode.

Gets the last child of the node.

[read-only]
abstract
LocalNamestring.

Gets the local name of the node, when overridden in a derived class.

[read-only]
abstract
Namestring.

Gets the qualified name of the node, when overridden in a derived class.

[read-only]
NamespaceURIstring.

Gets the namespace URI of this node.

[read-only]
NextSiblingXmlNode.

Gets the node immediately following this node.

[read-only]
abstract
NodeTypeXmlNodeType.

Gets the type of the current node, when overridden in a derived class.

[read-only]
OuterXmlstring.

Gets the markup containing this node and all its child nodes.

[read-only]
OwnerDocumentXmlDocument.

Gets the System.Xml.XmlDocument to which this node belongs.

[read-only]
ParentNodeXmlNode.

Gets the parent of this node (for nodes that can have parents).

Prefixstring.

Gets or sets the namespace prefix of this node.

[read-only]
PreviousSiblingXmlNode.

Gets the node immediately preceding this node.

[read-only]
SchemaInfoSystem.Xml.Schema.IXmlSchemaInfo.

Gets the post schema validation infoset that has been assigned to this node as a result of schema validation.

Valuestring.

Gets or sets the value of the node.

Public Methods

AppendChild(XmlNode) : XmlNode

Adds the specified node to the end of the list of child nodes, of this node.

Clone() : XmlNode

Creates a duplicate of this node.

abstract
CloneNode(bool) : XmlNode

Creates a duplicate of the node, when overridden in a derived class.

CreateNavigator() : System.Xml.XPath.XPathNavigator

Creates an System.Xml.XPath.XPathNavigator for navigating this object.

GetEnumerator() : IEnumerator

Get an enumerator that iterates through the child nodes in the current node.

GetNamespaceOfPrefix(string) : string

Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration.

GetPrefixOfNamespace(string) : string

Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration.

InsertAfter(XmlNode, XmlNode) : XmlNode

Inserts the specified node immediately after the specified reference node.

InsertBefore(XmlNode, XmlNode) : XmlNode

Inserts the specified node immediately before the specified reference node.

Normalize()

Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes.

PrependChild(XmlNode) : XmlNode

Adds the specified node to the beginning of the list of child nodes for this node.

RemoveAll()

Removes all the child nodes and/or attributes of the current node.

RemoveChild(XmlNode) : XmlNode

Removes specified child node.

ReplaceChild(XmlNode, XmlNode) : XmlNode

Replaces the child node oldChild with newChild node.

SelectNodes(string) : XmlNodeList

Selects a list of nodes matching the XPath expression.

SelectNodes(string, XmlNamespaceManager) : XmlNodeList

Selects a list of nodes matching the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied System.Xml.XmlNamespaceManager.

SelectSingleNode(string) : XmlNode

Selects the first XmlNode that matches the XPath expression.

SelectSingleNode(string, XmlNamespaceManager) : XmlNode

Selects the first XmlNode that matches the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied System.Xml.XmlNamespaceManager.

Supports(string, string) : bool

Tests if the DOM implementation implements a specific feature.

abstract
WriteContentTo(XmlWriter)

Saves all the child nodes of the node to the specified System.Xml.XmlWriter, when overridden in a derived class.

abstract
WriteTo(XmlWriter)

Saves the current node to the specified System.Xml.XmlWriter, when overridden in a derived class.

Explicitly Implemented Interface Members

ICloneable.Clone

For a description of this member, see XmlNode.Clone.

IEnumerable.GetEnumerator

For a description of this member, see XmlNode.GetEnumerator.