XmlDocument Class Reference
A XML Document.
More...
#include <XmlDocument.h>
List of all members.
Public Member Functions
XmlDocument (const std::string &encoding="", const std::string &styleSheet="")
Constructs a XmlDocument object.
Destructor.
set the output document as standalone or not.
Protected Attributes
Private Member Functions
Prevents the use of the copy constructor.
Prevents the use of the copy operator.
Detailed Description
A XML Document.
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".
Constructor & Destructor Documentation
CPPUNIT_NS_BEGIN XmlDocument::XmlDocument
(
const std::string &
encoding = ""
,
const std::string &
styleSheet = ""
)
Constructs a XmlDocument object.
- Parameters:
-
encoding Encoding used in the XML file (default is Latin-1, ISO-8859-1 ).
styleSheet Name of the XSL style sheet file used. If empty then no style sheet will be specified in the output.
XmlDocument::XmlDocument
(
const
XmlDocument &
copy
)
[private]
Prevents the use of the copy constructor.
Member Function Documentation
std::string XmlDocument::encoding
(
)
const
void XmlDocument::operator=
(
const
XmlDocument &
copy
)
[private]
Prevents the use of the copy operator.
void XmlDocument::setEncoding
(
const std::string &
encoding = ""
)
void XmlDocument::setRootElement
(
XmlElement *
rootElement
)
void XmlDocument::setStandalone
(
bool
standalone
)
set the output document as standalone or not.
For the output document, specify wether it's a standalone XML document, or not.
- Parameters:
-
standalone if true, the output will be specified as standalone. if false, it will be not.
void XmlDocument::setStyleSheet
(
const std::string &
styleSheet = ""
)
bool XmlDocument::standalone
(
)
const
std::string XmlDocument::styleSheet
(
)
const
std::string XmlDocument::toString
(
)
const
Member Data Documentation
The documentation for this class was generated from the following files: