zeep::xml::name_space — Just like an attribute, a name_space node is not a child of an element.
// In header: </home/maarten/projects/libzeep/zeep/xml/node.hpp> class name_space : public zeep::xml::node { public: // construct/copy/destruct name_space(const std::string &, const std::string &); // public member functions std::string qname() const; std::string ns() const; std::string prefix() const; void prefix(const std::string &); std::string uri() const; void uri(const std::string &); std::string str() const; void write(writer &) const; bool equals(const node *) const; node * clone() const; };
name_space
public member functionsstd::string qname() const;
Nodes can have a name, and the XPath specification requires that a node can have a so-called expanded-name. This name consists of a local-name and a namespace which is a URI. And we can have a QName which is a concatenation of a prefix (that points to a namespace URI) and a local-name separated by a colon.
To reduce storage requirements, names are stored in nodes as qnames, if at all.
std::string ns() const;Returns the namespace URI for the node, if it can be resolved.
std::string prefix() const;The prefix for the node as parsed from the qname.
void prefix(const std::string & p);
std::string uri() const;
void uri(const std::string & u);
std::string str() const;return all content concatenated, including that of children.
void write(writer & w) const;writing out
bool equals(const node * n) const;Compare the node with n.
node * clone() const;Deep clone the node.