#include <cxxtools/xml/characters.h>

Public Member Functions | |
| Characters (const String &content=String()) | |
| Constructs a new Character object with the given (optional) string as content. | |
| ~Characters () | |
| Empty destructor. | |
| Characters * | clone () const |
| Clones this Character object by creating a duplicate on the heap and returning it. | |
| bool | empty () const |
| Returns $true$ if the content of this Character object is empty; $false$ otherwise. | |
| void | clear () |
| String & | content () |
| Returns the content of this Character object. | |
| const String & | content () const |
| Returns the content of this Character object. | |
| void | setContent (const String &content) |
| Sets the content of this Character object. | |
| virtual bool | operator== (const Node &node) const |
| Compares this Character object with the given node. | |
Use content() to get the content of the CDATA element.
When parsing a tag $<a>This is the body's Text</a>$ the following content will be returned by content(): $This is the body's Text$
| Characters | ( | const String & | content = String() |
) |
| content | The content of the Character object. This is an optional parameter. Default is an empty string. |
| Characters* clone | ( | ) | const [virtual] |
| bool empty | ( | ) | const |
| String& content | ( | ) |
The content includes the Text inside a tag's body. The Text is interpreted before it is returned, this means that for example entities are translated into their corresponding character sequence. When parsing a tag $This is the body's Text$ the followin content will be returned: $This is the body's Text$
| const String& content | ( | ) | const |
The content includes the Text inside a tag's body. The Text is interpreted before it is returned, this means that for example entities are translated into their corresponding character sequence. When parsing a tag $This is the body's Text$ the followin content will be returned: $This is the body's Text$
| void setContent | ( | const String & | content | ) |
| content | The new content for this Character object. |
| virtual bool operator== | ( | const Node & | node | ) | const [virtual] |
This method returns $true$ if the given node also is a Character object and the content of both Character objects is the same. Otherwise it returns $false$.
| node | This Node object is compared to the current Character node object. |
Reimplemented from Node.