## Class text

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

## Synopsis

    // In header: </home/maarten/projects/libzeep/zeep/xml/node.hpp>

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

      // public member functions
      std::string str() const;
      void str(const std::string &);
      void write_content(std::ostream &, const char * = kWhiteSpaceChar) const;
      void append(const std::string &);
      void write(writer &) const;
      bool equals(const node *) const;
      node * clone() const;
    };

## Description

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

1.     text();

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

### `text` public member functions

1.     std::string str() const;

   return all content concatenated, including that of children.

2.     void str(const std::string & text);

3.     void write_content(std::ostream & os, const char * sep = kWhiteSpaceChar) const;

   write out the concatenated content to a stream, separated by sep.

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

5.     void write(writer & w) const;

   writing out

6.     bool equals(const node * n) const;

   Compare the node with n.

7.     node * clone() const;

   Deep clone the node.