I'm making a 2D game with LWJGL at the moment. I'm using JDOM as a base for storing information in XML files.
My items.xml file is structured as follows:
<items>
<item>
<id>1</id>
<name>Item</name>
<description>This is an item</description>
</item>
</items>
There will be a lot of items in the file. So I want to be able to select a specific item, where the tag matches the given id I want to search for. I understand how to get ALL the information from the file, but how can I get just a specific item?