So I'm starting to use XML and I'm trying to use it as a database of sorts. I've managed to save it off and read the whole thing in, but now the problem is that I want to be able to search through, get an item, and make it.
My current XML setup is below.
<?xml version="1.0" encoding="utf-8"?> <Items> <Object> <Index>10</Index> <Damage>4650</Damage> </Object> <Object> <Index>8</Index> <Damage>2940</Damage> </Object> <SecondObject> <Index>10</Index> <HP>0</HP> <Name>Some Dude</Name> </SecondObject> </Items>
So I'd like to be able to call for a "Object" of a certain index then use those details (both the index and the damage) to make an item.
I've tried a few different things but I wasn't able to get anything to work right. Any ideas?