Document Methods |
The methods of the Document object are listed here. For a complete list of Document object members, see the Document Members topic.
AppendChild (inherited from Node) | Adds the specified node to the end of the list of child nodes, of this node. |
CloneNode (inherited from Node) | Creates a duplicate of this node. |
CreateAttribute | Creates an Attribute object with the specified name. |
CreateCDATASection | Creates a CDATASection object containing the specified data. |
CreateComment | Creates a Comment object containing the specified data. |
CreateDocumentFragment | Creates a DocumentFragment object. |
CreateElement | Creates an Element object. |
CreateEntityReference | Creates an EntityReference object with the specified name. |
CreateProcessingInstruction | Creates a ProcessingInstruction object with the specified name and data. |
CreateTextNode | Creates a Text object with the specified text. |
GetElementById | Gets the Element with the specified ID. |
GetElementsByTagName | Returns a NodeList containing a list of all descendant elements that match the specified name. |
HasChildNodes (inherited from Node) | Gets a value indicating whether this node has any child nodes. |
ImportNode | Imports a Node from another document to the current document. |
InsertBefore (inherited from Node) | Inserts the specified node immediately before the specified reference node. |
Load | Loads the specified XML data into the current document. |
Normalize (inherited from Node) | Combines all adjacent text nodes in the full depth of the sub-tree underneath this node. |
RemoveChild (inherited from Node) | Removes specified child node. |
ReplaceChild (inherited from Node) | Replaces the child node oldChild with newChild node. |
Save | Saves the current XML document to the specified location. |