facate for an XML document More...
#include <mia/core/xmlinterface.hh>
Public Member Functions | |
CXMLElement::Pointer | create_root_node (const char *name) |
CXMLDocument () | |
CXMLDocument (const char *init) | |
CXMLElement::Pointer | get_root_node () const |
bool | read_from_string (const char *init) |
std::string | write_to_string (const char *encoding=NULL, bool formatted=true) const |
Friends | |
class | CXMLElement |
facate for an XML document
This class implements a very simple facade for a XML document that only supports reading, writing, and retriving the root node of the document.
Definition at line 135 of file xmlinterface.hh.
CXMLDocument::CXMLDocument | ( | ) |
Create an empty document
CXMLDocument::CXMLDocument | ( | const char * | init | ) |
Read the document from a charactar string that comprises valid XML.
CXMLElement::Pointer CXMLDocument::create_root_node | ( | const char * | name | ) |
Create a new root node and return it
name | tag of the root node |
CXMLElement::Pointer CXMLDocument::get_root_node | ( | ) | const |
bool CXMLDocument::read_from_string | ( | const char * | init | ) |
Read the document tree from an XML formatted string
init | the valid XML string |
std::string CXMLDocument::write_to_string | ( | const char * | encoding = NULL , |
bool | formatted = true |
||
) | const |
Write the document data as XML to a string.
encoding | specify the encoding to be used |
formatted | write the xml in a nicely formatted, human readable way |
|
friend |
Definition at line 179 of file xmlinterface.hh.