Members - Reputation: 108
Posted 01 August 2012 - 04:35 PM
This is currently what I have
while(!patientList.fail() && strcmp(user, name))
posOpen = str.find("<name>");
newStr = str.substr(posOpen + 1);
posClose = newStr.find("</name>");
newStr = str.substr(posOpen + 1, posClose);
Right now I have it going through the XML file, line by line trying to find a name. Now that works fine, but what I want to do next is once the name I am looking for is found I want to grab the line after it.
The XML looks like this
So I want to find the name I am looking for then grab the mood associated with that name.
Thanks for your help in advance.