Function findElementByTagAndAttValue

Function Documentation

bool findElementByTagAndAttValue(tinyxml2::XMLElement *root, const std::string tag, const std::string attributeName, const std::string attributeValue, tinyxml2::XMLElement *&element)

Find a XML element by tag and attribute name and value.

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

  • tag – tag name to look for

  • attributeName – attribute name to look for inside the tag

  • attributeValue – attribute value associated with the attribute name to look for

  • element – element found returned by reference

Returns:

true

Returns:

false