You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! Utility function for finding the first node of//! a list of names.//! \param elem XML node the node should retrieved from//! \param node_names Names of requested nodes//! \returns Pointer to found XML nodeinline rapidxml::xml_node<>* find_first_node_of_ns(
const rapidxml::xml_node<>& elem,
const Ch* namespace,const std::vector<std::string>& node_names)
{
usingnamespacerapidxml;
xml_node<>* result;
for (auto name : node_names)
{
result = elem.first_node_ns(namespace, name);
if (result)
{
return result;
}
}
return result;
}
Then it is possible to retrieve several node types:
Something like this:
Then it is possible to retrieve several node types:
Originally posted by @idolum in #156 (comment)
The text was updated successfully, but these errors were encountered: