CppUnit project page | FAQ | CppUnit home page |
#include <XmlDocument.h>
Public Member Functions | |
XmlDocument (const std::string &encoding="", const std::string &styleSheet="") | |
Constructs a XmlDocument object. | |
virtual | ~XmlDocument () |
Destructor. | |
std::string | encoding () const |
void | setEncoding (const std::string &encoding="") |
std::string | styleSheet () const |
void | setStyleSheet (const std::string &styleSheet="") |
bool | standalone () const |
void | setStandalone (bool standalone) |
set the output document as standalone or not. | |
void | setRootElement (XmlElement *rootElement) |
XmlElement & | rootElement () const |
std::string | toString () const |
Protected Attributes | |
std::string | m_encoding |
std::string | m_styleSheet |
XmlElement * | m_rootElement |
bool | m_standalone |
Private Member Functions | |
XmlDocument (const XmlDocument ©) | |
Prevents the use of the copy constructor. | |
void | operator= (const XmlDocument ©) |
Prevents the use of the copy operator. |
A XmlDocument represents a XML file. It holds a pointer on the root XmlElement of the document. It also holds the encoding and style sheet used.
By default, the XML document is stand-alone and tagged with enconding "ISO-8859-1".
|
Constructs a XmlDocument object.
|
|
Destructor.
|
|
Prevents the use of the copy constructor.
|
|
|
|
Prevents the use of the copy operator.
|
|
|
|
|
|
|
|
set the output document as standalone or not. For the output document, specify wether it's a standalone XML document, or not.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |