I think problem is with wrong using function or something else.
This part of code is working but the result isn't well.
TiXmlElement* e = hDoc.FirstChildElement().Element(); // think problem is there
while (e)
{
e = e->NextSiblingElement(); //or may be there
count++;
}
The result of count is 1.
Xml file is:
<doc>
<state> ... </state>
<state> ... </state>
...
</doc>
Can't find work example.