#include <Pt/Xml/Comment.h>
A Comment node represents a comment in an XML document. More...
Inherits Node.
Public Member Functions | |
Comment () | |
Constructs an empty Comment node. | |
void | clear () |
Clears all content. | |
String & | content () |
Returns the text of the comment. | |
const String & | content () const |
Returns the text of the comment. | |
bool | empty () const |
Returns true if is empty. | |
void | setContent (const String &text) |
Sets the text of the comment. | |
Type | type () const |
Returns the type of the node. | |
Related Functions | |
Comment * | toComment (Node *node) |
Casts a generic node to a Comment node. | |
const Comment * | toComment (const Node *node) |
Casts a generic node to a Comment node. | |
Comment & | toComment (Node &node) |
Casts a generic node to a Comment node. | |
const Comment & | toComment (const Node &node) |
Casts a generic node to a Comment node. | |
Comments are only reported if the XmlReader is configured to do so.