class DOM_Text : public DOM_CharacterData TheTextinterface represents the textual content (termed character data in XML) of anElementorAttr
| | Constructors and assignment operator
| ||||||||
| | Destructor.
| ||||||||
| | Functions to modify the Text node.
|
Functions that set or change data.
Getter functions.
data and
the substringData method below
Cloning function.
Constructors and assignment operators
Equality and Inequality operators.
Functions introduced in DOM Level 2.
null if it is unspecified
null if it is unspecified
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.
TheTextinterface represents the textual content (termed character data in XML) of anElementorAttr. If there is no markup inside an element's content, the text is contained in a single object implementing theTextinterface that is the only child of the element. If there is markup, it is parsed into a list of elements andTextnodes that form the list of children of the element.When a document is first made available via the DOM, there is only one
Textnode for each block of text. Users may create adjacentTextnodes that represent the contents of a given element without any intervening markup, but should be aware that there is no way to represent the separations between these nodes in XML, so they will not (in general) persist between DOM editing sessions. Thenormalize()method onElementmerges any such adjacentTextobjects into a single node for each block of text; this is recommended before employing operations that depend on a particular document structure, such as navigation withXPointers.
DOM_Text(const DOM_Text &other)
DOM_Text that refers to the
same underlying node as the original. See also DOM_Node::clone(),
which will copy the actual Text node, rather than just creating a new
reference to the original node.
DOM_Text& operator = (const DOM_Text &other)
DOM_Text& operator = (const DOM_NullPtr *val)
Text node into two Text nodes at the specified
offset, keeping both in the tree as siblings.
This node then only
contains all the content up to the offset point. And a new
Text node, which is inserted as the next sibling of this
node, contains all the content at and after the offset
point.
data.
Text node.
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 |
|
generated by doc++