## Class root_node

zeep::xml::root_node

## Synopsis

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

    class root_node : public zeep::xml::container {
    public:
      // construct/copy/destruct
      root_node();
      ~root_node();

      // public member functions
      root_node * root();
      const root_node * root() const;
      element * child_element() const;
      void child_element(element *);
      std::string str() const;
      void append(node *);
      void write(writer &) const;
      bool equals(const node *) const;
    };

## Description

All zeep::xml::document objects have exactly one zeep::xml::root_node member. root_node is a container with only one child element.

### `root_node` public construct/copy/destruct

1.     root_node();

2.     ~root_node();

### `root_node` public member functions

1.     root_node * root();

   The root node for this node.

2.     const root_node * root() const;

   The root node for this node.

3.     element * child_element() const;

4.     void child_element(element * e);

5.     std::string str() const;

   return all content concatenated, including that of children.

6.     void append(node * n);

7.     void write(writer & w) const;

   writing out

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

   Compare the node with n.