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.
<root> <child> <subchild>.....</subchild> </child> </root>
Here is an example from w3schools of a note to Tove from Jani, stored as XML:
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
Here is another example from w3schools with some attributes on the nodes:
<bookstore> <book category="COOKING"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="CHILDREN"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="WEB"> <title lang="en">Learning XML</title> <author>Erik T. Ray</author> <year>2003</year> <price>39.95</price> </book> </bookstore>
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 .