Logo
Reference manual - version ored_version
Public Member Functions | List of all members
XMLDocument Class Reference

Small XML Document wrapper class. More...

#include <ored/utilities/xmlutils.hpp>

Public Member Functions

 XMLDocument ()
 create an empty doc.
 
 XMLDocument (const string &filename)
 load an xml doc from the given file
 
 ~XMLDocument ()
 destructor
 
void fromXMLString (const string &xmlString)
 load a document from a hard-coded string
 
void toFile (const string &filename)
 save the XML Document to the given file.
 
std::string toString ()
 return the XML Document as a string.
 
XMLNodegetFirstNode (const string &name)
 
void appendNode (XMLNode *)
 
XMLNodeallocNode (const string &nodeName)
 util functions that wrap rapidxml
 
XMLNodeallocNode (const string &nodeName, const string &nodeValue)
 
char * allocString (const string &str)
 
rapidxml::xml_document< char > * doc ()
 

Detailed Description

Small XML Document wrapper class.