<routes>
<route name="NAME1">
<waypoint name="POINT1"/>
<waypoint name="POINT2"/>
<waypoint name="POINT3"/>
</route>
<route name="NAME2">
<waypoint name="POINT4"/>
<waypoint name="POINT5"/>
</route>
</routes>
i.e. I can get all elements with :
Code: Select all
switch(xml->getNodeType())
{
case irr::io::EXN_ELEMENT:
if (routeNode.equals_ignore_case(xml->getNodeName()))
{
routeName = xml->getAttributeValue("name");
}
else if (waypointNode.equals_ignore_case(xml->getNodeName()))
{
waypointName = xml->getAttributeValue("name");
};
break;
};
irrXML reads nodes one by one as it goes through file. It has no posibility to detect parent and child node ? Am I right ?
How to detect how many childs parent node has ?
Some example would be great....