MI - Fimex
|
#include <fimex/XMLDoc.h>
Public Member Functions | |
XMLDoc (const std::string &filename) | |
virtual | ~XMLDoc () |
XPathObjPtr | getXPathObject (const std::string &xpath, xmlNodePtr node=0) const |
void | registerNamespace (const std::string &prefix, const std::string &uri) |
register a namespace for later xpath More... | |
std::string | toString (const xmlNodePtr node) |
Static Public Member Functions | |
static boost::shared_ptr< XMLDoc > | fromFile (const std::string &filename) |
static boost::shared_ptr< XMLDoc > | fromString (const std::string &buffer, const std::string &url="") |
static boost::shared_ptr< XMLDoc > | fromURL (const std::string &url) |
a tiny wrapper around libxml dom and xpath reader with xml::include
|
explicit |
initialization of libxml and the xml config file
filename | xml input-file |
CDMException | if problems with libxml or problems with input-file |
|
virtual |
|
static |
|
static |
|
static |
XPathObjPtr MetNoFimex::XMLDoc::getXPathObject | ( | const std::string & | xpath, |
xmlNodePtr | node = 0 |
||
) | const |
get a ptr to the node defined by xpath
xpath | xpath string for the node |
node | the node to search within |
CDMException | if xpath is not parsable |
void MetNoFimex::XMLDoc::registerNamespace | ( | const std::string & | prefix, |
const std::string & | uri | ||
) |
register a namespace for later xpath
register a namespace with a prefix for later xpath retrievals
prefix | short name for namespace |
uri | full namespace name |
std::string MetNoFimex::XMLDoc::toString | ( | const xmlNodePtr | node | ) |
make a string representation of a node as full xml-document
node | a node to print |