Another basic question. I have been looking through the editor scripts, but cant find anything similar to what I want to do. I need to parse some xml files containing game configuration, from simple stuff like entity definition to more complex ones like dialogs (still not designed).
So, my typical xml looks like this:
<entities>
<entity id="one" name="wahatever" description="WTF"/>
<entity id="another" name="wahatever 2" description="No idea"/>
*
*
</entities>
A more complex one could be:
<item id="hunt-knife" name="Knife" >
<property name="speed" value="1.0" type="speed"></property>
<property name="range" value="1" type="range"></property>
</item>
Can somebody give me a brief guide to iterate through several childs and parse nested xml?