This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
XmlNode Methods
The methods of the XmlNode class are listed below. For a complete list of XmlNode class members, see the XmlNode Members topic.
Public:
AppendChild |
Adds the specified node to the end of the list of children of this node. |
Clone |
Creates a duplicate of this node. |
CloneNode |
Creates a duplicate of this node. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetEnumerator |
Provides a simple ForEach-style iteration over the collection of nodes in this XmlNamedNodeMap. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetNamespaceOfPrefix |
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 |
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. |
GetType (inherited from Object) |
Gets the Type of the Object. |
InsertAfter |
Inserts the specified node immediately after the specified reference node. |
InsertBefore |
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 (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes. |
PrependChild |
Adds the specified node to the beginning of the list of children of this node. |
RemoveAll |
Removes all the children and/or attributes of the current node. |
RemoveChild |
Removes specified child node. |
ReplaceChild |
Replaces the child node oldChild with newChild node. |
Supports |
Test if the DOM implementation implements a specific feature. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
WriteContentTo |
Saves all the children of the node to the specified XmlWriter. |
WriteTo |
Saves the current node to the specified XmlWriter. |
Protected:
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
XmlNode Class | System.NewXml Namespace