Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

xmlpp::ContentNode Class Reference

Content Node. More...

Inheritance diagram for xmlpp::ContentNode:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ContentNode (_xmlNode *node)
virtual ~ContentNode ()
std::string get_content () const
 Get the text of this content node.

void set_content (const std::string &content)
 Set the text of this content node.

bool is_white_space () const
 Whether this node contains only white space, or is empty.


Detailed Description

Content Node.

This will be instantiated by the parser.


Constructor & Destructor Documentation

xmlpp::ContentNode::ContentNode _xmlNode *  node  )  [explicit]
 

virtual xmlpp::ContentNode::~ContentNode  )  [virtual]
 


Member Function Documentation

std::string xmlpp::ContentNode::get_content  )  const
 

Get the text of this content node.

Returns:
The text. Note that the 5 predefined entities (&, ", <, &qt, TODO: What's the 5th one?) are always resolved, so this content will show their human-readable equivalents.

bool xmlpp::ContentNode::is_white_space  )  const
 

Whether this node contains only white space, or is empty.

void xmlpp::ContentNode::set_content const std::string &  content  ) 
 

Set the text of this content node.

Parameters:
content The text. This must be unescaped, meaning that the predefined entities will be created for you. See get_content().


The documentation for this class was generated from the following file:
Generated on Wed May 5 22:52:44 2004 for libxml++ by doxygen 1.3.5