DOMText
interface inherits from DOMCharacterData
and represents the textual content (termed character data in XML) of an DOMElement
or DOMAttr
.
More...
#include <DOMText.hpp>
Inheritance diagram for xercesc::DOMText:
Public Member Functions | |
Destructor | |
virtual | ~DOMText () |
Destructor. | |
Functions introduced in DOM Level 1 | |
virtual DOMText * | splitText (XMLSize_t offset)=0 |
Breaks this node into two nodes at the specified offset , keeping both in the tree as siblings. | |
Functions introduced in DOM Level 3 | |
virtual bool | getIsWhitespaceInElementContent () const =0 |
Returns whether this text node contains whitespace in element content, often abusively called "ignorable whitespace". | |
virtual const XMLCh * | getWholeText ()=0 |
Returns all text of DOMText nodes logically-adjacent text nodes to this node, concatenated in document order. | |
virtual DOMText * | replaceWholeText (const XMLCh *content)=0 |
Substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. | |
Non-standard extension | |
virtual bool | isIgnorableWhitespace () const =0 |
Non-standard extension. | |
Protected Member Functions | |
Hidden constructors | |
DOMText () | |
DOMText (const DOMText &other) |
DOMText
interface inherits from DOMCharacterData
and represents the textual content (termed character data in XML) of an DOMElement
or DOMAttr
.
If there is no markup inside an element's content, the text is contained in a single object implementing the DOMText
interface that is the only child of the element. If there is markup, it is parsed into the information items (elements, comments, etc.) and DOMText
nodes that form the list of children of the element.
When a document is first made available via the DOM, there is only one DOMText
node for each block of text. Users may create adjacent DOMText
nodes 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 or HTML, so they will not (in general) persist between DOM editing sessions. The normalize()
method on DOMNode
merges any such adjacent DOMText
objects into a single node for each block of text.
See also the Document Object Model (DOM) Level 2 Core Specification.
|
|
|
|
|
Destructor.
|
|
Returns whether this text node contains whitespace in element content, often abusively called "ignorable whitespace".
An implementation can only return "Experimental - subject to change"
|
|
Returns all text of "Experimental - subject to change"
|
|
Non-standard extension. Return true if this node contains ignorable whitespaces only.
|
|
Substitutes the a specified text for the text of the current node and all logically-adjacent text nodes. "Experimental - subject to change"
|
|
Breaks this node into two nodes at the specified
After being split, this node will contain all the content up to the
|