XmlDocument Methods
The methods of the XmlDocument class are listed here. For a complete list of XmlDocument class members, see the XmlDocument Members topic.
Public Methods
AppendChild (inherited from XmlNode)
Supported by the .NET Compact Framework. | Adds the specified node to the end of the list of child nodes, of this node. |
Clone (inherited from XmlNode)
Supported by the .NET Compact Framework. | Creates a duplicate of this node. |
CloneNode Supported by the .NET Compact Framework. | Overridden. Creates a duplicate of this node. |
CreateAttribute Supported by the .NET Compact Framework. | Overloaded. Creates an XmlAttribute with the specified name. |
CreateCDataSection Supported by the .NET Compact Framework. | Creates an XmlCDataSection containing the specified data. |
CreateComment Supported by the .NET Compact Framework. | Creates an XmlComment containing the specified data. |
CreateDocumentFragment Supported by the .NET Compact Framework. | Creates an XmlDocumentFragment. |
CreateDocumentType | Returns a new XmlDocumentType object. |
CreateElement Supported by the .NET Compact Framework. | Overloaded. Creates an XmlElement. |
CreateEntityReference Supported by the .NET Compact Framework. | Creates an XmlEntityReference with the specified name. |
CreateNavigator (inherited from XmlNode) | Creates an XPathNavigator for navigating this object. |
CreateNode Supported by the .NET Compact Framework. | Overloaded. Creates an XmlNode. |
CreateProcessingInstruction Supported by the .NET Compact Framework. | Creates an XmlProcessingInstruction with the specified name and data. |
CreateSignificantWhitespace Supported by the .NET Compact Framework. | Creates an XmlSignificantWhitespace node. |
CreateTextNode Supported by the .NET Compact Framework. | Creates an XmlText with the specified text. |
CreateWhitespace Supported by the .NET Compact Framework. | Creates an XmlWhitespace node. |
CreateXmlDeclaration Supported by the .NET Compact Framework. | Creates an XmlDeclaration node with the specified values. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetElementById | Gets the XmlElement with the specified ID. |
GetElementsByTagName Supported by the .NET Compact Framework. | Overloaded. Returns an XmlNodeList containing a list of all descendant elements that match the specified name. |
GetEnumerator (inherited from XmlNode)
Supported by the .NET Compact Framework. | Provides support for the for each style iteration over the nodes in the XmlNode. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetNamespaceOfPrefix (inherited from XmlNode)
Supported by the .NET Compact Framework. | 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 (inherited from XmlNode)
Supported by the .NET Compact Framework. | 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)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
ImportNode Supported by the .NET Compact Framework. | Imports a node from another document to the current document. |
InsertAfter (inherited from XmlNode)
Supported by the .NET Compact Framework. | Inserts the specified node immediately after the specified reference node. |
InsertBefore (inherited from XmlNode)
Supported by the .NET Compact Framework. | Inserts the specified node immediately before the specified reference node. |
Load Supported by the .NET Compact Framework. | Overloaded. Loads the specified XML data.
Note The Load method always preserves significant white space. The PreserveWhitespace property determines whether or not white space is preserved. The default is false, white space is not preserved. |
LoadXml Supported by the .NET Compact Framework. | Loads the XML document from the specified string. |
Normalize (inherited from XmlNode)
Supported by the .NET Compact Framework. | 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 (inherited from XmlNode)
Supported by the .NET Compact Framework. | Adds the specified node to the beginning of the list of child nodes for this node. |
ReadNode Supported by the .NET Compact Framework. | Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute. |
RemoveAll (inherited from XmlNode)
Supported by the .NET Compact Framework. | Removes all the child nodes and/or attributes of the current node. |
RemoveChild (inherited from XmlNode)
Supported by the .NET Compact Framework. | Removes specified child node. |
ReplaceChild (inherited from XmlNode)
Supported by the .NET Compact Framework. | Replaces the child node oldChild with newChild node. |
Save Supported by the .NET Compact Framework. | Overloaded. Saves the XML document to the specified location. |
SelectNodes (inherited from XmlNode) | Overloaded. Selects a list of nodes matching the XPath expression. |
SelectSingleNode (inherited from XmlNode) | Overloaded. Selects the first XmlNode that matches the XPath expression. |
Supports (inherited from XmlNode)
Supported by the .NET Compact Framework. | Test if the DOM implementation implements a specific feature. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
WriteContentTo Supported by the .NET Compact Framework. | Overridden. Saves all the children of the XmlDocument node to the specified XmlWriter. |
WriteTo Supported by the .NET Compact Framework. | Overridden. Saves the XmlDocument node to the specified XmlWriter. |
Protected Methods
CreateDefaultAttribute | Creates a default attribute with the specified prefix, local name and namespace URI. |
CreateNavigator | Overloaded. Creates a new XPathNavigator object for navigating this document. See XmlNode.CreateNavigator for an example using this method.
This method is a Microsoft extension to the Document Object Model (DOM). |
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
