Document

Document


Represents the top level of the XML source. Includes methods and properties used to obtain or create all other XML objects.

Public:

Properties:

NameDescription
documentElement (get)Returns the root element of the document. 

Methods:

NameDescription
createElementCreates an element node using the specified name. 
loadLoads an XML document from the specified location. 
nodeFromIDReturns the node whose ID attribute matches the supplied value. 
saveSaves an XML document to the specified location. 
selectNodesApplies the specified pattern-matching operation to this node's context and returns the list of matching nodes. 
selectSingleNodeApplies the specified pattern to this node's context and returns the first matching node.