Class to refer to XML Document nodes in the DOM
Constructors and assignment operators
| |||||||||||||||||||||||||||||||
Destructor
| |||||||||||||||||||||||||||||||
Factory methods to create new nodes for the Document
| |||||||||||||||||||||||||||||||
Functions introduced in DOM Level 2.
| |||||||||||||||||||||||||||||||
Getter functions
|
Cloning function.
Destructor.
Equality and Inequality operators.
Functions to modify the DOM Node.
newChild
before the existing child node
refChild
oldChild
with newChild
in the list of children, and returns the oldChild
node
oldChild
from the list
of children, and returns it
newChild
to the end of the list of children of
this node
Get functions.
NodeList
that contains all children of this node
NamedNodeMap
containing the attributes of this node (if it
is an Element
) or null
otherwise
Document
object associated with this node
Query functions.
Set functions.
Class to refer to XML Document nodes in the DOM. Conceptually, a DOM 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
, theDocument
interface also contains the factory methods needed to create these objects. TheNode
objects created have aownerDocument
attribute which associates them with theDocument
within whose context they were created.
DOM_Document::createDocument().
DOM_Document
that refers to the
same underlying actual document as the original.
The reference counting memory management will delete the underlying document itself if this DOM_Document is the last remaining to refer to the Document, and if there are no remaining references to any of the nodes within the document tree. If other live references do remain, the underlying document itself remains also.
DOM_Document
default
constructor, which creates
a null reference only, not an actual document.
This function is an extension to the DOM API, which lacks any mechanism for the creation of new documents.
DOM_Document
, which may then
be populated using the DOM API calls.
DOM_Element
that reference the new element.
DOM_Element
that reference the new element.
DOM_DocumentFragment
that references the newly
created document fragment.
DOM_Text
object that references the newly
created text node.
DOM_Comment
that references the newly
created comment node.
DOM_CDATASection
object.
DOM_CDATASection
contents.
DOM_DocumentType
that references the newly
created DocumentType node.
DOM_Notation
that references the newly
created Notation node.
DOM_ProcessingInstruction
that references the newly
created PI node.
data - The data for the node.
Attr
instance can then be attached to an Element
using the DOMElement::setAttribute()
method.
DOM_Attr
that references the newly
created Attr.
DOM_EntityReference
that references the newly
created EntityReference node.
DOM_DocumentType
) associated
with this document.
For documents without
a document type declaration this returns null
reference object. The DOM Level
1 does not support editing the Document Type Declaration, therefore
docType
cannot be altered in any way.
DOMImplementation
object that handles this document
DOM_NodeList
of all the elements with a
given tag name. The returned node list is "live", in that changes
to the document tree made after a nodelist was initially
returned will be immediately reflected in the node list.
The elements in the node list are ordered in the same order in which they
would be encountered in a
preorder traversal of the Document
tree.
Element
s.
DOM_Element
object.
null
or an empty
string, this method behaves like createElement
.
qualifiedName - The qualified name
of the element type to instantiate.
DOM_Attr
object.
null
or an empty
string, this method behaves like createAttribute
.
qualifiedName - The qualified name
of the attribute type to instantiate.
DOM_NodeList
of all the DOM_Element
s
with a given local name and
namespace URI in the order in which they would be encountered in a
preorder traversal of the Document
tree
DOM_NodeList
object containing all the matched
Element
s.
null
or an empty string, this
method behaves like getElementsByTagName
.
localName - The local name of the
elements to match on. The special value "*" matches all local names.
Element
whose ID is given by elementId
.
If no such element exists, returns null
.
Behavior is not defined if more than one element has this ID
.
id
value for an element.
alphabetic index hierarchy of classes
XML Parser for C++ 2.0 Copyright © IBM Corp, 1999 Center for Java Technology 10275 N. De Anza Blvd. Cupertino CA 95014 USA Email: xml4c@us.ibm.com |
|