An XML file is a text file that stores a heirarchy of 'things' with names and attributes.

THATS IT! nothing more.

if 'heirarchy' is confusing to you, just think of a tree - you have a trunk, with branches, which in turn have sub branches. In XML the base node (the tree's trunk) is known as the 'root' node.


Here is an example from w3schools of a note to Tove from Jani, stored as XML:

    <body>Don't forget me this weekend!</body>

Here is another example from w3schools with some attributes on the nodes:

 <book category="COOKING">
   <title lang="en">Everyday Italian</title>
   <author>Giada De Laurentiis</author>
 <book category="CHILDREN">
   <title lang="en">Harry Potter</title>
   <author>J K. Rowling</author>
 <book category="WEB">
   <title lang="en">Learning XML</title>
   <author>Erik T. Ray</author>

XML is simply a way to store data hierarchically. GunApp weapons are described in XML and GunApp reads this XML to load and play them .