33 #ifndef BESXMLUtils_h_ 34 #define BESXMLUtils_h_ 1 44 #include <libxml/encoding.h> 52 static void XMLErrorFunc(
void *context,
const char *msg, ...);
53 static void GetProps(xmlNode *node, map<string, string> &props);
54 static void GetNodeInfo(xmlNode *node,
string &name,
string &value, map<string, string> &props);
55 static xmlNode *
GetFirstChild(xmlNode *node,
string &child_name,
string &child_value,
56 map<string, string> &child_props);
57 static xmlNode *
GetNextChild(xmlNode *child_node,
string &next_name,
string &next_value,
58 map<string, string> &next_props);
59 static xmlNode *
GetChild(xmlNode *node,
const string &child_name,
string &child_value,
60 map<string, string> &child_props);
63 #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 (xml attributes) 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