Public Member Functions |
| Text () |
| Create an empty Text node handle, suitable only for holding references to other Text nodes.
|
| Text (const String &text) |
| Create a new Text node with the given text; the node is not yet owned by any XML document.
|
Text | clone () const |
| The clone() method makes a deep copy of this Text node and returns a new orphan Text node with the same contents; ordinary assignment and copy construction are shallow.
|
const String & | getText () const |
| Obtain a const reference to the String holding the value of this Text.
|
String & | updText () |
| Obtain a writable reference to the String holding the value of this Text node; this can be used to alter the value.
|
Static Public Member Functions |
|
If you have a handle to a Node, such as would be returned by a node_iterator, you can check whether that Node is a Text node and if so cast it to one.
|
static bool | isA (const Node &) |
| Test whether a given Node is an Text node.
|
static const Text & | getAs (const Node &node) |
| Recast a Node to a const Text node, throwing an error if the Node is not actually a Text node.
|
static Text & | getAs (Node &node) |
| Recast a writable Node to a writable Text node, throwing an error if the Node is not actually a Text node.
|
This is the "leaf" content of an element.