Document Methods

This class inherits from the Node class.

Method Description
Create Attribute Creates an attribute with a name you specify. Details
Create Attribute NS Creates an attribute using the qualified name and namespace URI you specify. Details
Create CDATA Section Creates a CDATA Section Node using data you specify. Details
Create Comment Creates a Comment Node using data you specify. Details
Create Document Fragment Creates an empty Document Fragment object. Details
Create Element Creates an element with a tag name you specify. Details
Create Element NS Creates an element using the qualified name and namespace URI you specify. Details
Create Entity Reference Creates an entity reference with a name that you specify. Details
Create Processing Instruction Creates a Processing Instruction Node using Target and Data strings. Details
Create Text Node Creates a Text Node using data you specify. Details
Get Element By ID Returns an element containing the ID you specify in ElementId. Details
Get Elements By Tag Name Array Returns an array of nodes with a tag name you specify, in the order that a preorder traversal of the Document tree encounters the nodes. Details
Get Elements By Tag Name Returns a list of nodes with a tag name you specify, in the order that a preorder traversal of the Document tree encounters the nodes. Details
Get Elements By Tag Name NS Returns a list of element(s) with a local name and namespace URI that you specify, in the order that a preorder traversal of the Document tree encounters the nodes. Details
Get Elements By Tag Name NS Array Returns an array of nodes containing the element(s) with a local name and namespace URI that you specify, in the order that a preorder traversal of the Document tree encounters the nodes. Details
Import Node Imports a node from another document. Details
Load File Loads the file into the parser. Details
Load String Loads the string into the parser. Details
Save File Saves the document into the specified file. Details
Save File (Pretty Print) Saves the document in pretty print format into the file you specify. Details