PrevUpHomeNext

Class processing_instruction

zeep::xml::processing_instruction — A node containing a XML processing instruction (like e.g. <?php ?>)

Synopsis

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


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

  // public member functions
  std::string qname() const;
  std::string str() const;
  std::string target() const;
  void target(const std::string &);
  std::string text() const;
  void text(const std::string &);
  void write(writer &) const;
  bool equals(const node *) const;
  node * clone() const;
};

Description

processing_instruction public construct/copy/destruct

  1. processing_instruction();
  2. processing_instruction(const std::string & target, const std::string & text);

processing_instruction public member functions

  1. std::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.

  2. std::string str() const;
    return all content concatenated, including that of children.
  3. std::string target() const;
  4. void target(const std::string & target);
  5. std::string text() const;
  6. void text(const std::string & text);
  7. void write(writer & w) const;
    writing out
  8. bool equals(const node * n) const;
    Compare the node with n.
  9. node * clone() const;
    Deep clone the node.

PrevUpHomeNext