bes
Updated for version 3.20.6
|
33 #ifndef BESXMLUtils_h_
34 #define BESXMLUtils_h_ 1
40 #include <libxml/encoding.h>
48 static void XMLErrorFunc(
void *context,
const char *msg, ...);
49 static void GetProps(xmlNode *node, std::map<std::string, std::string> &props);
50 static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map<std::string, std::string> &props);
51 static xmlNode *
GetFirstChild(xmlNode *node, std::string &child_name, std::string &child_value,
52 std::map<std::string, std::string> &child_props);
53 static xmlNode *
GetNextChild(xmlNode *child_node, std::string &next_name, std::string &next_value,
54 std::map<std::string, std::string> &next_props);
55 static xmlNode *
GetChild(xmlNode *node,
const std::string &child_name, std::string &child_value,
56 std::map<std::string, std::string> &child_props);
59 #endif // BESXMLUtils_h_
static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map< std::string, std::string > &props)
get the name, value if any, and any properties for the specified node
static void GetProps(xmlNode *node, std::map< std::string, std::string > &props)
given an xml node, build the map of properties (xml attributes) for that node
static void XMLErrorFunc(void *context, const char *msg,...)
error function used by libxml2 to report errors
static xmlNode * GetChild(xmlNode *node, const std::string &child_name, std::string &child_value, std::map< std::string, std::string > &child_props)
get the element child node of the given node with the given name
static xmlNode * GetFirstChild(xmlNode *node, std::string &child_name, std::string &child_value, std::map< std::string, std::string > &child_props)
get the first element child node for the given node
static xmlNode * GetNextChild(xmlNode *child_node, std::string &next_name, std::string &next_value, std::map< std::string, std::string > &next_props)
get the next element child node after the given child node