I'm looking for a simple way to read XML that is contained in a string variable in C++ for Unix systems. I have found a lot of solutions for xml files but not a lot about XML that is contained in a string variable.
Do I have to use functions such as find(), etc. or is there a library that I missed that could do the job for me ?
EDIT:
If I have the following XML in a string, how can I read it ? (with pugixml for example)
string xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
xml += "<people><person><name>Toto</name><age>20</age></person>";
xml += "<person><name>John</name><age>42</age></person></people>";