xml.DomDocument methods
Methods for the xml.DomDocument
class.
Name | Description |
---|---|
|
Constructor of an empty DomDocument object. |
|
Constructor of a DomDocument with a XML root element. |
|
Constructor of a DomDocument with a root namespace-qualified XML root element |
Name | Description |
---|---|
|
Returns the root XML Element DomNode object for this DomDocument object. |
|
Returns the number of child DomNode objects for a DomDocument object. |
|
Returns the child DomNode object at a given position for this DomDocument object. |
|
Returns the element that has an attribute of type ID with the given value. |
|
Returns a DomNodeList object containing all XML Element DomNode objects with the same tag name in the entire document. |
|
Returns a DomNodeList object containing all namespace qualified XML Element DomNode objects with the same tag name and namespace in the entire document |
|
Returns the first child DomNode object for a DomDocument object. |
|
Returns the last child DomNode object in a DomDocument object. |
|
Returns a DomNodeList object containing all DomNode objects matching a XPath 1.0 expression. |
Name | Description |
---|---|
|
Adds a child DomNode object to the end of the DomNode children for this DomDocument object. |
|
Returns a copy of a DomDocument object. |
|
Forces namespace declaration to a XML Element DomNode for a DomDocument object. |
|
Inserts a child DomNode object after another child DomNode in a DomDocument object. |
|
Inserts a child DomNode object before another child DomNode for this DomDocument object. |
|
Imports a DomNode from a DomDocument object into its new context (attached to a DomDocument object). |
|
Adds a child DomNode object to the beginning of the DomNode children of a DomDocument object |
|
Removes a child DomNode object from the DomNode children in a DomDocument object. |
Name | Description |
---|---|
|
Creates a XML Attribute DomNode object for a DomDocument object. |
|
Creates a XML namespace-qualified Attribute DomNode object for a DomDocument object. |
|
Creates an XML CData DomNode object for a DomDocument object. |
|
Creates a XML Comment DomNode object for a DomDocument object. |
|
Creates a XML Document Fragment DomNode object for a DomDocument object. |
|
Creates a XML Document Type (DTD) DomNode object for a DomDocument object. |
|
Creates a XML Element DomNode object for a DomDocument object |
|
Creates a XML namespace-qualified Element DomNode object for a DomDocument object. |
|
Creates a XML EntityReference DomNode object for a DomDocument object |
|
Creates a XML DomNode object from a string for a DomDocument object. |
|
Creates a XML Processing Instruction DomNode object for this DomDocument object. |
|
Creates a XML Text DomNode object for a DomDocument object. |
Name | Description |
---|---|
|
Loads a XML Document into a DomDocument object from a file or an URL. |
|
Loads a XML Document into a DomDocument object from a PIPE. |
|
Loads a XML Document into a DomDocument object from a string. |
|
Normalizes the entire Document. |
|
Saves a DomDocument object as a XML Document to a file or URL. |
|
Saves a DomDocument object as an XML Document to a PIPE. |
|
Saves a DomDocument object as a XML Document to a string. |
Name | Description |
---|---|
|
Gets a feature for a DomDocument object. |
|
Returns the document encoding as defined in the XML document declaration. |
|
Returns the document version as defined in the XML document declaration. |
|
Checks whether the XML standalone attribute is set in the XML declaration. |
|
Sets a feature for a DomDocument object. |
|
Sets the XML document encoding in the XML declaration. |
|
Sets the XML standalone attribute in the XML declaration to "yes" or "no" in the XML declaration, or removes the standalone attribute. |
Name | Description |
---|---|
|
Performs a DTD or XML Schema validation for a DomDocument object. |
|
Performs a DTD or XML Schema validation of a XML Element DomNode object. |
Name | Description |
---|---|
|
Returns the number of errors encountered during the loading, saving or validation of a XML document. |
|
Returns the error description at the given position. |