The methods of the Document object are listed here. For a complete list of Document object members, see the Document Members topic.

Public Methods

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

See Also

Document Object | DOM Namespace