The code is got from the http://www.grinninglizard.com/tinyxml2docs/_example-3.html
static const char* xml =
"<?xml version=\"1.0\"?>"
"<!DOCTYPE PLAY SYSTEM \"play.dtd\">"
"<PLAY>"
"<TITLE>A Midsummer <b>Night's Dream</b></TITLE>"
"</PLAY>";
XMLDocument doc;
doc.Parse(xml);
XMLElement* titleElement = doc.FirstChildElement("PLAY")->FirstChildElement("TITLE");
XMLText* textNode = titleElement->FirstChild()->ToText();
auto title = textNode->Value();
The title should contain A Midsummer <b>Night's Dream</b>
as the introduction explain. But the result of code is still A Midsummer
. Dose anyone can tell me what's wrong with my code, or some other function to achieve the parse.