I tried to use IXMLReaderUTF8 instead, same result. I also tried changing the encoding of my XML-file from ANSI to UTF8 to UNICODE to no advance.
If I am not mistaking, the getNodeData() Method should return everything that is inside the element, that is, entire subnodes and such.
What Am I doing wrong?

Code: Select all
IXMLReaderUTF8 *reader=files->createXMLReaderUTF8("../debug/Units2.xml");
stringw MessageText;
while(reader&&reader->read())
{
stringw nodeName=reader->getNodeName();
stringw nodeData=reader->getNodeData();
}
reader->drop();Code: Select all
<data>
<object id="drone" type="unitTemplate">
<primary id="drone_body"/>
<assets>
<!--A plain skinned node-->
<asset id="drone_head" attach="head"/>
<!--A weapon-->
<asset id="minigun_left" attach="gun_left"/>
<asset id="minigun_right" attach="gun_right"/>
</assets>
<specifics>
<unitStats hp="500" speed="0,1" />
</specifics>
</object>
</data>