System.Xml.XmlNode: Method Members

The methods of System.Xml.XmlNode are listed below. For a list of all members, see the XmlNode Members list.

See Also: Inherited members from System.Object

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.