helper functions to find the first element (if any) below a base element matching the XPath
| 399 | |
| 400 | // helper functions to find the first element (if any) below a base element matching the XPath |
| 401 | inline XMLElement * find_element (XMLElement * base, std::string xpath = ""s) |
| 402 | { |
| 403 | return *Selector<XMLElement> (base, xpath) .begin(); |
| 404 | } |
| 405 | |
| 406 | |
| 407 | inline const XMLElement * find_element (const XMLElement * base, std::string xpath = ""s) |