Working with strings in an xml file C++
I have a function that retrives text between title and links tags from an XML file, but what i want is to test if the title and link tags are between item tags. This is my code:
Please show an example of the XML file that contains the data you are attempting to parse; your opening statement was not very clear.
And btw, the STL string find() function returns a size_t value, not an int. The returned value will either be a usable index, or std::string::npos on failure. Thus checking if the return value is greater than zero (0) is not appropriate.
|All times are GMT -5. The time now is 04:07 PM.|