xml.DomDocument methods
Methods for the xml.DomDocument
class.
Name | Description |
---|---|
|
Constructor of an empty xml.DomDocument
object. |
|
Constructor of an xml.DomDocument with an XML root
element. |
|
Constructor of a xml.DomDocument with a root
namespace-qualified XML root element |
Name | Description |
---|---|
|
Returns the root XML Element xml.DomNode object for
this xml.DomDocument object. |
|
Returns the number of child xml.DomNode objects for
this xml.DomDocument object. |
|
Returns the child xml.DomNode object at a given
position for this xml.DomDocument object. |
|
Returns the xml.DomNode element that has an attribute
of type ID with the given value. |
|
Returns a xml.DomNodeList object containing all XML
Element xml.DomNode objects with the same tag name in the
document. |
|
Returns an xml.DomNodeList object containing all
namespace qualified XML Element xml.DomNode objects with the same tag name and
namespace in the entire document |
|
Returns the first child xml.DomNode object for this
xml.DomDocument object. |
|
Returns the last child xml.DomNode object in this
xml.DomDocument object. |
|
Returns a xml.DomNodeList object containing all
xml.DomNode objects matching an 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 this xml.DomDocument
object. |
|
Forces namespace declaration to a XML Element
xml.DomNode for this xml.DomDocument object. |
|
Inserts a child xml.DomNode object after another
child DomNode in this xml.DomDocument object. |
|
Inserts a child DomNode object before another child
xml.DomNode for this xml.DomDocument object. |
|
Imports a xml.DomNode from a
xml.DomDocument object into its new context (attached to a
xml.DomDocument object). |
|
Adds a child xml.DomNode object to the beginning of
the xml.DomNode children of this xml.DomDocument
object. |
|
Removes a child xml.DomNode object from the
xml.DomNode children in this xml.DomDocument
object. |
Name | Description |
---|---|
|
Creates a XML Attribute xml.DomNode object for an
xml.DomDocument object. |
|
Creates a XML namespace-qualified Attribute
xml.DomNode object for this xml.DomDocument
object. |
|
Creates an XML CData xml.DomNode object for an
xml.DomDocument object. |
|
Creates a XML Comment xml.DomNode object for an
xml.DomDocument object. |
|
Creates a XML Document Fragment xml.DomNode object
for this xml.DomDocument object. |
|
Creates a XML Document Type (DTD) xml.DomNode object
for this xml.DomDocument object. |
|
Creates a XML Element xml.DomNode object for an
xml.DomDocument object |
|
Creates a XML namespace-qualified Element xml.DomNode
object for an xml.DomDocument object. |
|
Creates a XML EntityReference xml.DomNode object for
this xml.DomDocument object |
|
Creates an xml.DomNode object from a string for this
xml.DomDocument object. |
|
Creates a XML Processing Instruction xml.DomNode
object for this xml.DomDocument object. |
|
Creates a XML Text xml.DomNode object for this
xml.DomDocument object. |
Name | Description |
---|---|
|
Loads a XML Document into a DomDocument object from a file or an URL. |
|
Loads a XML Document into this xml.DomDocument object
from a PIPE. |
|
Loads a XML Document into a xml.DomDocument object
from a string. |
|
Normalizes the entire Document. |
|
Saves this xml.DomDocument object as a XML Document
to a file or URL. |
|
Saves this xml.DomDocument object as an XML Document
via a PIPE. |
|
Saves this xml.DomDocument object as a XML Document
to a string. |
Name | Description |
---|---|
|
Gets a feature for an xml.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 this xml.DomDocument
object. |
|
Sets the XML document encoding in the XML declaration of this
xml.DomDocument . |
|
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 this
xml.DomDocument object. |
|
Performs a DTD or XML Schema validation of a XML Element
xml.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. |