## Class text

zeep::xml::text — A node containing text.

## Synopsis

    // In header: <zeep/xml/node.hpp>

    class text : public zeep::xml::node_with_text {
    public:
      // construct/copy/destruct
      text();
      text(text &&) noexcept;
      text(const std::string &);

      // public member functions
      void append(const std::string &);
      virtual bool equals(const node *) const;
      bool is_space() const;
      virtual node * clone() const;
      virtual node * move();

      // protected member functions
      virtual void write(std::ostream &, format_info) const;
    };

## Description

### `text` public construct/copy/destruct

1.     text();

2.     text(text && t) noexcept;

3.     text(const std::string & text);

### `text` public member functions

1.     void append(const std::string & text);

   append text to the stored text

2.     virtual bool equals(const node * n) const;

   compare nodes for equality

3.     bool is_space() const;

   returns true if this text contains only whitespace characters

4.     virtual node * clone() const;

   return an exact copy of this node, including all data in sub nodes

5.     virtual node * move();

   return a copy of this node, including all data in sub nodes, but in contrast with clone the data is moved from this node to the cloned node. This node will be empty afterwards.

### `text` protected member functions

1.     virtual void write(std::ostream & os, format_info fmt) const;

   low level routine for writing out XML

   This method is usually called by operator<<(std::ostream&, zeep::xml::document&)