libzeep

PrevUpHomeNext

Class cdata

zeep::xml::cdata

Synopsis

// In header: <zeep/xml/node.hpp>


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

  // public member functions
  virtual bool equals(const node *) const;
  virtual node * clone() const;
  virtual node * move();

  // protected member functions
  virtual void write(std::ostream &, format_info) const;
};

Description

A node containing the contents of a CDATA section. Normally, these nodes are converted to text nodes but you can specify to preserve them when parsing a document.

cdata public construct/copy/destruct

  1. cdata();
  2. cdata(cdata && cd);
  3. cdata(const std::string & s);

cdata public member functions

  1. virtual bool equals(const node * n) const;
    compare nodes for equality
  2. virtual node * clone() const;
    return an exact copy of this node, including all data in sub nodes
  3. virtual node * move();

    return a copy of this node, including all data in sub nodes, but in contrast with clone the data is moved from this node to the cloned node. This node will be empty afterwards.

cdata protected member functions

  1. virtual void write(std::ostream & os, format_info fmt) const;
    low level routine for writing out XML

    This method is usually called by operator<<(std::ostream&, zeep::xml::document&)


PrevUpHomeNext