-}
-
-const xmlNode* yp2::RouterFleXML::Rep::jump_to_children(const xmlNode* node,
- int xml_node_type)
-{
- node = node->children;
- for (; node && node->type != xml_node_type; node = node->next)
- ;
- return node;
-}
-
-const xmlNode* yp2::RouterFleXML::Rep::jump_to_next(const xmlNode* node,
- int xml_node_type)
-{
- node = node->next;
- for (; node && node->type != xml_node_type; node = node->next)
- ;
- return node;
-}
-
-const xmlNode* yp2::RouterFleXML::Rep::jump_to(const xmlNode* node,
- int xml_node_type)
-{
- for (; node && node->type != xml_node_type; node = node->next)
- ;
- return node;
-}
-
-bool yp2::RouterFleXML::Rep::is_element(const xmlNode *ptr,
- const std::string &ns,
- const std::string &name)
-{
- if (ptr && ptr->type == XML_ELEMENT_NODE && ptr->ns && ptr->ns->href
- && !xmlStrcmp(BAD_CAST ns.c_str(), ptr->ns->href)
- && !xmlStrcmp(BAD_CAST name.c_str(), ptr->name))
- return true;
- return false;
-}