## Class element

zeep::xml::doctype::element

## Synopsis

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

    class element : private noncopyable {
    public:
      // construct/copy/destruct
      element(const std::string &, bool, bool);
      ~element();

      // public member functions
      void add_attribute(attribute *);
      const attribute * get_attribute(const std::string &) const;
      const std::string & name() const;
      const attribute_list & attributes() const;
      void set_allowed(allowed_ptr);
      void declared(bool);
      bool declared() const;
      void external(bool);
      bool external() const;
      bool empty() const;
      bool element_content() const;
      validator get_validator() const;
    };

## Description

### `element` public construct/copy/destruct

1.     element(const std::string & name, bool declared, bool external);

2.     ~element();

### `element` public member functions

1.     void add_attribute(attribute * attr);

2.     const attribute * get_attribute(const std::string & name) const;

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

4.     const attribute_list & attributes() const;

5.     void set_allowed(allowed_ptr allowed);

6.     void declared(bool declared);

7.     bool declared() const;

8.     void external(bool external);

9.     bool external() const;

10.     bool empty() const;

11.     bool element_content() const;

12.     validator get_validator() const;