const XMLDataNode *pointsNode = node->GetChildren().at(0);
std::wistringstream pointsstrm(*pointsNode->GetInnerText());
pointsstrm >> loadedGame.points;
This is code I've written to pull an int
from an XML file and pass it into loadedGame.points
(an int
). However, this isn't working. It compiles but doens't give the right value. Why is that? XMLDataNode
is a class that manipulates xmllite.dll
.