Small XML Document wrapper class. More...
#include <ored/utilities/xmlutils.hpp>
Public Member Functions | |
XMLDocument () | |
create an empty doc. More... | |
XMLDocument (const string &filename) | |
load an xml doc from the given file More... | |
~XMLDocument () | |
destructor More... | |
void | fromXMLString (const string &xmlString) |
load a document from a hard-coded string More... | |
void | toFile (const string &filename) const |
save the XML Document to the given file. More... | |
std::string | toString () const |
return the XML Document as a string. More... | |
XMLNode * | getFirstNode (const string &name) const |
void | appendNode (XMLNode *) |
XMLNode * | allocNode (const string &nodeName) |
util functions that wrap rapidxml More... | |
XMLNode * | allocNode (const string &nodeName, const string &nodeValue) |
char * | allocString (const string &str) |
rapidxml::xml_document< char > * | doc () |
Private Attributes | |
rapidxml::xml_document< char > * | _doc |
char * | _buffer |
Small XML Document wrapper class.
Definition at line 65 of file xmlutils.hpp.
XMLDocument | ( | ) |
XMLDocument | ( | const string & | filename | ) |
load an xml doc from the given file
Definition at line 77 of file xmlutils.cpp.
~XMLDocument | ( | ) |
void fromXMLString | ( | const string & | xmlString | ) |
load a document from a hard-coded string
Definition at line 103 of file xmlutils.cpp.
void toFile | ( | const string & | filename | ) | const |
save the XML Document to the given file.
Definition at line 120 of file xmlutils.cpp.
string toString | ( | ) | const |
return the XML Document as a string.
Definition at line 126 of file xmlutils.cpp.
XMLNode * getFirstNode | ( | const string & | name | ) | const |
void appendNode | ( | XMLNode * | node | ) |
Definition at line 118 of file xmlutils.cpp.
XMLNode * allocNode | ( | const string & | nodeName | ) |
util functions that wrap rapidxml
Definition at line 132 of file xmlutils.cpp.
XMLNode * allocNode | ( | const string & | nodeName, |
const string & | nodeValue | ||
) |
Definition at line 138 of file xmlutils.cpp.
char * allocString | ( | const string & | str | ) |
Definition at line 144 of file xmlutils.cpp.
rapidxml::xml_document< char > * doc | ( | ) |
|
private |
Definition at line 94 of file xmlutils.hpp.
|
private |
Definition at line 95 of file xmlutils.hpp.