retrieving the value between tags XML Xerces C++ Parser

Mladen

New Member
I'm currently using Xerces library to parse a XML file in C++. I have the algorithm parser written, and the only thing missing is how to retrieve the value between two tags?For example,\[code\]<name>John</name>\[/code\], I would like to be able to get the value John, so I could store in a string variable which I have for that purpose. I know that using\[code\]DOMElement * current = root->getFirstChildElement();const XMLCh * tag = current->getTagName();cout << XMLString::transcode(tag) << endl;\[/code\]I will be able to print that tag, but I'm more interested in the value between tags. Any ideas?
 
Back
Top