Home /
Expert Answers /
Computer Science /
solve-in-c-write-a-function-that-finds-all-elements-with-the-given-name-and-returns-a-vector-of-pa119
(Solved): #Solve in C++
Write a function that finds all elements with the given name and returns a vector of ...
#Solve in C++
Write a function that finds all elements with the given name and returns a vector of strings that contains the element values. vector \) find_all_elements(const string \&xml, string tag_name) For example, if you search for "position" from the example xml-file the returned vector will contain 24 strings: " 1 ", "2", "3", \( \ldots \) " 24 ". If you search for "temperature" from the example xml-file the function returns an empty vector.