#include <judo.hpp>
Inheritance diagram for judo::CDATA:
Public Member Functions | |
CDATA (const char *text, unsigned int textsz, bool escaped=false) | |
Default constructor. | |
void | setText (const char *text, unsigned int textsz, bool escaped=false) |
Overwrite all existing character data in this object with specified text. | |
void | appendText (const char *text, unsigned int textsz, bool escaped=false) |
Append new character data to the existing text in this object. | |
const std::string & | getText () const |
Get a read-only reference to the character data in this object. | |
std::string | toString () const |
Get a properly escaped XML string representation of this object. | |
void | accumulate (XMLAccumulator &acc) const |
Accumulator entry point for recursive XML serialization. |
Definition at line 149 of file judo.hpp.
|
Accumulator entry point for recursive XML serialization. This is a virtual abstract method that is implemented by subclasses.
Implements judo::Node. |
|
Append new character data to the existing text in this object.
Definition at line 195 of file judo.hpp. Referenced by judo::Element::addCDATA(). |
|
Get a read-only reference to the character data in this object. Note that this data is not properly escaped XML and is not suitable for passing to an XML parser. |
|
Overwrite all existing character data in this object with specified text.
|
|
Get a properly escaped XML string representation of this object.
Implements judo::Node. |