How do you use that in a game? I'm wanting to use it to store item information, monsters, etc, but I don't understand how I would do something like that.
I mean, I understand how I'd set up the XML file:
<weapons>
<weapon name="sword" damage="2"/>
</weapons>
But how do I recognize this in-game? Do I create these objects at runtime by calling some proc to read this info from the XML file, and then create that object? Do I read info as I need it? That's the part I don't get.
This seems like it'll work for what I want perfectly, if only someone can clarify how I use it. =) Thanks in advance.
Pretty straightforward really.