## Class text

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

## Synopsis

    // In header: </build/libzeep-8SPbhu/libzeep-3.0.5/zeep/xml/node.hpp>

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

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

## Description

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

1.     text();

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

### `text` public member functions

1.     virtual std::string str() const;

   return all content concatenated, including that of children.

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

   both attribute and element implement str(const string&), others will throw

3.     virtual 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.     virtual void write(writer & w) const;

   writing out

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

   Compare the node with n.

7.     virtual node * clone() const;

   Deep clone the node.