Class cdata

Inheritance Relationships

Base Type

Class Documentation

class cdata : public mxml::node_with_text

A node containing the contents of a CDATA section. Normally, these nodes are converted to text nodes but you can specify to preserve them when parsing a document.

Public Functions

inline virtual constexpr node_type type() const override

node_type to be returned by each implementation of this node class

inline cdata(std::string s = {})

default constructor

inline cdata(const cdata &cd)

copy constructor

inline cdata(cdata &&cd) noexcept

move constructor

inline cdata &operator=(cdata cd) noexcept

assignment operator

inline void append(std::string_view text)

append text to the stored text

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

compare nodes for equality