#include <XMLDoc.h>
Public Member Functions | |
XMLDoc (const std::string &filename) throw (CDMException) | |
virtual | ~XMLDoc () |
XPathObjPtr | getXPathObject (const std::string &xpath, xmlNodePtr node=0) const throw (CDMException) |
void | registerNamespace (const std::string &prefix, const std::string &uri) throw (CDMException) |
register a namespace for later xpath |
MetNoFimex::XMLDoc::XMLDoc | ( | const std::string & | filename | ) | throw (CDMException) |
initialization of libxml and the xml config file
filename | xml input-file |
CDMException | if problems with libxml or problems with input-file |
virtual MetNoFimex::XMLDoc::~XMLDoc | ( | ) | [virtual] |
XPathObjPtr MetNoFimex::XMLDoc::getXPathObject | ( | const std::string & | xpath, | |
xmlNodePtr | node = 0 | |||
) | const throw (CDMException) |
get a ptr to the node defined by xpath
xpath | xpath string for the node |
CDMException | if xpath is not parsable |
void MetNoFimex::XMLDoc::registerNamespace | ( | const std::string & | prefix, | |
const std::string & | uri | |||
) | throw (CDMException) |
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 |