#include <cxxtools/xml/comment.h>

Public Member Functions | |
| Comment (const String &Text) | |
| Constructs a new Comment object with the given string as content/Text. | |
| ~Comment () | |
| Empty destructor. | |
| Comment * | clone () const |
| Clones this Comment object by creating a duplicate on the heap and returning it. | |
| String & | text () |
| Returns the content/Text of this Comment object. | |
| const String & | text () const |
| Returns the content/Text of this Comment object. | |
| void | setText (const String text) |
| Sets the Text of this Comment object. | |
Use Text() to get the content/Text of the comment element without the <!-- and -->.
When parsing a comment %<!-- This is a comment -->$ the following Text will be returned by Text(): $This is a comment$
| Comment* clone | ( | ) | const [virtual] |
| String& text | ( | ) |
The content includes everything that is between the start and end "tags" of the comment without being parsed. When parsing a comment %<!-- This is a comment -->$ the following Text will be returned: $This is a comment$
| const String& text | ( | ) | const |
The content includes everything that is between the start and end "tags" of the comment without being parsed. When parsing a comment %<!-- This is a comment -->$ the following Text will be returned: $This is a comment$