I play Magic the Gathering and have an app on my phone that allows me to input decks and it saves the contents as an XML FILE. I wanted to parse tie file and create a PHP data base using the information in that file. (BASICLY I want to input my ejtre collection as a "deck", and then create a searchable database based on that information. Is tree a simple way to do that? I sraw that Ajax and Json might hold the answers but I know nothing about either. Thanks for any advice. Below is an example XML file. <?xml version='1.0' encoding='UTF-8' standalone='no' ?><deckforge><name>Bant, Braided.xml</name><deck><card quantity="4" multiverseid="289">Forest</card><card quantity="4" multiverseid="293">Island</card><card quantity="3" multiverseid="295">Plains</card><card quantity="3" multiverseid="118874">Terramorphic Expanse</card><card quantity="2" multiverseid="141802">Shimmering Grotto</card><card quantity="1" multiverseid="87963">Selesnya Sanctuary</card><card quantity="1" multiverseid="97089">Simic Growth Chamber</card><card quantity="3" multiverseid="122428">Essence Warden</card><card quantity="3" multiverseid="96934">Wild Cantor</card><card quantity="3" multiverseid="51628">Eternal Witness</card><card quantity="3" multiverseid="124316">Braids, Conjurer Adept</card><card quantity="3" multiverseid="118873">Herd Gnarr</card><card quantity="2" multiverseid="190399">Emeria Angel</card><card quantity="2" multiverseid="44320">Krosan Drover</card><card quantity="1" multiverseid="270">Serra Angel</card><card quantity="1" multiverseid="215111">Sunblast Angel</card><card quantity="1" multiverseid="190407">Iona, Shield of Emeria</card><card quantity="1" multiverseid="22965">Reya Dawnbringer</card><card quantity="3" multiverseid="175053">Call to Heel</card><card quantity="3" multiverseid="124047">Evolution Charm</card><card quantity="3" multiverseid="50256">Otherworldly Journey</card><card quantity="2" multiverseid="152570">Negate</card><card quantity="2" multiverseid="158752">Turn to Mist</card><card quantity="3" multiverseid="73558">Paradise Mantle</card><card quantity="3" multiverseid="46030">Whispersilk Cloak</card></deck><sideboard /><notes></notes></deckforge>
http://www.w3schools.com/PHP/php_xml_simplexml.asp In the foreach loop, cast it into an array, and then insert the array into your database at the end. Does that help?