Small XML Document wrapper class. More...
#include <ored/utilities/xmlutils.hpp>
Collaboration diagram for XMLDocument: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.
Here is the caller graph for this function:| void toFile | ( | const string & | filename | ) | const |
save the XML Document to the given file.
Definition at line 120 of file xmlutils.cpp.
Here is the caller graph for this function:| string toString | ( | ) | const |
return the XML Document as a string.
Definition at line 126 of file xmlutils.cpp.
Here is the caller graph for this function:| XMLNode * getFirstNode | ( | const string & | name | ) | const |
| void appendNode | ( | XMLNode * | node | ) |
Definition at line 118 of file xmlutils.cpp.
Here is the caller graph for this function:| XMLNode * allocNode | ( | const string & | nodeName | ) |
util functions that wrap rapidxml
Definition at line 132 of file xmlutils.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| XMLNode * allocNode | ( | const string & | nodeName, |
| const string & | nodeValue | ||
| ) |
Definition at line 138 of file xmlutils.cpp.
Here is the call graph for this function:| char * allocString | ( | const string & | str | ) |
Definition at line 144 of file xmlutils.cpp.
Here is the caller graph for this function:| rapidxml::xml_document< char > * doc | ( | ) |
|
private |
Definition at line 94 of file xmlutils.hpp.
|
private |
Definition at line 95 of file xmlutils.hpp.