Inheritance diagram for IDOM_Document:
Public Methods | |
Destructor | |
Factory methods to create new nodes for the Document | |
virtual IDOM_Entity * | createEntity (const XMLCh *name)=0 |
virtual IDOM_Element * | createElement (const XMLCh *tagName)=0 |
virtual IDOM_DocumentFragment * | createDocumentFragment ()=0 |
virtual IDOM_Text * | createTextNode (const XMLCh *data)=0 |
virtual IDOM_Comment * | createComment (const XMLCh *data)=0 |
virtual IDOM_CDATASection * | createCDATASection (const XMLCh *data)=0 |
virtual IDOM_DocumentType * | createDocumentType (const XMLCh *name)=0 |
virtual IDOM_Notation * | createNotation (const XMLCh *name)=0 |
virtual IDOM_ProcessingInstruction * | createProcessingInstruction (const XMLCh *target, const XMLCh *data)=0 |
virtual IDOM_Attr * | createAttribute (const XMLCh *name)=0 |
virtual IDOM_EntityReference * | createEntityReference (const XMLCh *name)=0 |
virtual IDOM_NodeIterator * | createNodeIterator (IDOM_Node *root, unsigned long whatToShow, IDOM_NodeFilter *filter, bool entityReferenceExpansion)=0 |
virtual IDOM_TreeWalker * | createTreeWalker (IDOM_Node *root, unsigned long whatToShow, IDOM_NodeFilter *filter, bool entityReferenceExpansion)=0 |
virtual IDOM_Range * | createRange ()=0 |
Getter functions | |
virtual IDOM_DocumentType * | getDoctype () const=0 |
virtual IDOM_DOMImplementation * | getImplementation () const=0 |
virtual IDOM_Element * | getDocumentElement () const=0 |
virtual IDOM_NodeList * | getElementsByTagName (const XMLCh *tagname) const=0 |
Functions introduced in IDOM Level 2. | |
virtual IDOM_Node * | importNode (IDOM_Node *importedNode, bool deep)=0 |
virtual IDOM_Element * | createElementNS (const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0 |
virtual IDOM_Attr * | createAttributeNS (const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0 |
virtual IDOM_NodeList * | getElementsByTagNameNS (const XMLCh *namespaceURI, const XMLCh *localName) const=0 |
virtual IDOM_Element * | getElementById (const XMLCh *elementId) const=0 |
Protected Methods | |
Constructors and assignment operators | |
IDOM_Document () | |
IDOM_Document (const IDOM_Document &other) | |
IDOM_Document & | operator= (const IDOM_Document &other) |
Friends | |
class | IDOM_Node |
class | DocumentImpl |
class | NodeIteratorImpl |
class | IDOM_IDOMImplementation |
Conceptually, a IDOM document node 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.
|
The default constructor for IDOM_Document creates a null IDOM_Document object that refers to no document. It may subsequently be assigned to refer to an actual Document node.
To create a new document, use the DOMImplementation |
|
Copy constructor. Creates a new
|
|
Creates an Attr of the given name.
Note that the
|
|
Creates an attribute of the given qualified name and namespace URI.
|
|
Creates a CDATASection node whose value is the specified string.
|
|
Creates a Comment node given the specified string.
|
|
Creates an empty DocumentFragment object.
|
|
Create a DocumentType node. Non-standard extension.
|
|
Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.
|
|
Creates an element of the given qualified name and namespace URI.
|
|
Create a new entity. Non-standard extension.
|
|
Creates an EntityReference object.
|
|
Creates a NodeIterator object. (IDOM2)
NodeIterators are used to step through a set of nodes, e.g. the set of nodes in a NodeList, the document subtree governed by a particular node, the results of a query, or any other set of nodes. The set of nodes to be iterated is determined by the implementation of the NodeIterator. IDOM Level 2 specifies a single NodeIterator implementation for document-order traversal of a document subtree. Instances of these iterators are created by calling
To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the
|
|
Create a Notation. Non-standard extension.
|
|
Creates a ProcessingInstruction node given the specified name and data strings.
|
|
To create the range consisting of boundary-points and offset of the selected contents
|
|
Creates a Text node given the specified string.
|
|
Creates a TreeWalker object. (IDOM2) TreeWalker objects are used to navigate a document tree or subtree using the view of the document defined by its whatToShow flags and any filters that are defined for the TreeWalker. Any function which performs navigation using a TreeWalker will automatically support any view defined by a TreeWalker. Omitting nodes from the logical view of a subtree can result in a structure that is substantially different from the same subtree in the complete, unfiltered document. Nodes that are siblings in the TreeWalker view may be children of different, widely separated nodes in the original view. For instance, consider a Filter that skips all nodes except for Text nodes and the root node of a document. In the logical view that results, all text nodes will be siblings and appear as direct children of the root node, no matter how deeply nested the structure of the original document.
To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the whatToShow flags to hide the entity reference node and set
|
|
Get Document Type Declaration (see
For documents without a document type declaration this returns |
|
Return a reference to the root element of the document. |
|
Returns the
Note: The IDOM implementation must have information that says which attributes are of type ID. Attributes with the name "ID" are not of type ID unless so defined. Implementations that do not know whether attributes are of type ID or not are expected to return
|
|
Returns a
The elements in the node list are ordered in the same order in which they would be encountered in a preorder traversal of the
|
|
Returns a
|
|
Return the |
|
Imports a node from another document to this document. The returned node has no parent (
|
|
Assignment operator
|