Function findElementVectorByTagAndAttribute

Function Documentation

void findElementVectorByTagAndAttribute(tinyxml2::XMLElement *root, const std::string tag, const std::string attribute, std::vector<tinyxml2::XMLElement*> &elementVector)

Find a vector of XML elements by tag and attribute name.

Parameters:
  • root – root element from which to start the search

  • tag – tag name to look for

  • attribute – attribute name to look for inside the tag

  • elementVector – element vector containing the elements found