
DOM Document class. More...
Derived from: | public CL_DomNode |
Derived by: | None |
Group: | XML (Core) |
#include <ClanLib/core.h>
Class Members:
Construction: | |
Constructs a DOM Document. |
| |
Returns the Document Type Declaration (see CL_DomDocumentType )associated with this document. | |
Returns the CL_DomImplementation object that handles this document. | |
Returns the root document element node. |
| |
Creates an element of the type specified. | |
Creates an element of the given qualified name and namespace URI. | |
Creates an empty DocumentFragment object. | |
Creates a Text node given the specified string. | |
Creates a Comment node given the specified string. | |
Creates a CDATASection node whose value is the specified string. | |
Creates a ProcessingInstruction node given the specified name and data strings. | |
Creates an Attr of the given name. | |
Creates an attribute of the given qualified name and namespace URI. | |
Creates an EntityReference object. | |
Returns a NodeList of all the Elements with a given tag name. | |
Returns a NodeList of all the Elements with a given local name and namespace URI. | |
Returns the Element whose ID is given by element_id. | |
Imports a node from another document to this document. | |
Loads the DOM document as XML from an input source. | |
Saves the DOM document as XML to an input source. | |
Removes all nodes from the DOM document. |
Detailed description:
The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.