Home | All Classes | Grouped Classes | Index | Search
DOM Document class. More...
Derived from:
CL_DomNode
Derived by:
none
Group: Core (XML)
#include <ClanLib/core.h>
Construction:
Constructs a DOM Document. |
Attributes:
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. |
Operations:
Creates an element of the type specified. | |
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 EntityReference object. | |
Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. | |
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:
!group=Core/XML! !header=core.h!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.