id_value = value;
else if (name == "type")
type_value = value;
+ else if (name == "base")
+ ;// Ignore XInclude base attribute.
else
throw mp::XMLError("Only attribute id or type allowed"
" in filter element. Got " + name);
refid_value = value;
else if (name == "type")
type_value = value;
+ else if (name == "base")
+ ;// Ignore XInclude base attribute.
else
throw mp::XMLError("Only attribute 'refid' or 'type'"
" allowed for element 'filter'."
type_value.c_str(), m_dl_path.c_str());
m_factory->add_creator_dl(type_value, m_dl_path);
}
- mp::filter::Base* filter_base = m_factory->create(type_value);
+ boost::shared_ptr<mp::filter::Base>
+ filter_base(m_factory->create(type_value));
filter_base->configure(node, test_only, file_include_path);
- route.m_list.push_back(
- boost::shared_ptr<mp::filter::Base>(filter_base));
+ route.m_list.push_back(filter_base);
}
}
if (name == "id")
id_value = value;
+ else if (name == "base")
+ ;// Ignore XInclude base attribute.
else
throw mp::XMLError("Only attribute 'id' allowed for"
" element '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);
std::map<std::string,RouterFleXML::Route>::iterator it;
if (name == "route")
m_start_route = value;
+ else if (name == "base")
+ ;// Ignore XInclude base attribute.
else
throw mp::XMLError("Only attribute route allowed"
" in element 'start'. Got " + name);
bool test_only)
: m_p(new Rep)
{
- LIBXML_TEST_VERSION;
-
xmlDocPtr doc = xmlParseMemory(xmlconf.c_str(),
xmlconf.size());
if (!doc)