+ node = mp::xml::jump_to_next(node, XML_ELEMENT_NODE);
+ }
+}
+
+
+void mp::RouterFleXML::Rep::parse_xml_routes(xmlDocPtr doc,
+ const xmlNode *node,
+ bool test_only,
+ const char *file_include_path)
+{
+ mp::xml::check_element_mp(node, "route");
+
+ unsigned int route_nr = 0;
+ while (mp::xml::is_element_mp(node, "route"))
+ {
+ route_nr++;
+
+ const struct _xmlAttr *attr;
+ std::string id_value;
+ for (attr = node->properties; attr; attr = attr->next)
+ {
+ std::string name = std::string((const char *) attr->name);
+ std::string value;
+
+ if (attr->children && attr->children->type == XML_TEXT_NODE)
+ value = std::string((const char *)attr->children->content);
+
+ if (name == "id")
+ id_value = value;
+ else
+ throw mp::XMLError("Only attribute 'id' allowed for"
+ " element 'route'."
+ " Got " + name);
+ }
+
+ Route route;
+
+ // process <filter> / <filters> nodes in third level
+ const xmlNode* node3 = mp::xml::jump_to_children(node, XML_ELEMENT_NODE);
+ parse_xml_filters1(doc, node3, test_only, file_include_path, route);
+