33 #ifndef BESXMLUtils_h_ 34 #define BESXMLUtils_h_ 1 44 #include <libxml/encoding.h> 54 const char *msg, ... ) ;
56 map<string, string> &props ) ;
60 map<string, string> &props ) ;
64 map<string, string> &child_props ) ;
68 map<string, string> &next_props ) ;
69 static xmlNode *
GetChild( xmlNode *node,
70 const string &child_name,
72 map<string, string> &child_props ) ;
75 #endif // BESXMLUtils_h_ static xmlNode * GetFirstChild(xmlNode *node, string &child_name, string &child_value, map< string, string > &child_props)
get the first element child node for the given node
static xmlNode * GetNextChild(xmlNode *child_node, string &next_name, string &next_value, map< string, string > &next_props)
get the next element child node after the given child node
static void GetNodeInfo(xmlNode *node, string &name, string &value, map< string, string > &props)
get the name, value if any, and any properties for the specified node
static void XMLErrorFunc(void *context, const char *msg,...)
error function used by libxml2 to report errors
static void GetProps(xmlNode *node, map< string, string > &props)
given an xml node, build the map of properties for that node
static xmlNode * GetChild(xmlNode *node, const string &child_name, string &child_value, map< string, string > &child_props)
get the element child node of the given node with the given name