Class node_with_text

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class node_with_text : public mxml::node

An abstract base class for nodes that contain text.

Subclassed by mxml::cdata, mxml::comment, mxml::processing_instruction, mxml::text

Protected Functions

inline virtual std::string str() const override

return the text content

inline virtual std::string get_text() const

return the text content, same as str()

inline virtual void set_text(std::string text)

set the text content

inline virtual bool equals(const node *n) const override

Compare two nodes with text for equality.