[Utility] Civilization 5/BE: simple XML to SQL converter (PHP script)

Artisanix

Warlord
Joined
Oct 6, 2013
Messages
104
Civilization 5/BE: simple XML to SQL converter
v1.3, written by Artisanix, 2014/12/09


This simple conversion script is based on PHP capabilities to process XML files.
The script displays webpage with simple interface for conversion and the instructions what you need to do there (see attached screenshots for the idea).


To use this script you need to have webserver installed on your machine with PHP support.
If you know very little about setting up webservers, then you may want to download some integrated solutions like EasyPHP, The Uniform Server, etc. - they are easy to install and most of the time they work just after the install finishes without any special configuration.

Then you need to copy this script file (civ_xml2sql.php) to the root folder of your webserver, and it should be accessed in the browser via this address:
localhost/civ_xml2sql.php



Well, happy converting...

Of course, if you have any questions, just ask here... ;]





EDIT3: Uploaded a 1.3 version
EDIT2: Uploaded a fixed version... ("now should work" - programmer's most used words ;])
EDIT1: Heh, I've spotted some error ;p The SQL text values are not in quotes, so you may want to wait for a minute until I fix it ;]
 

Attachments

  • Civ_XML2SQL.zip
    490.7 KB · Views: 410
  • civ_xml2sql_pic01.jpg
    civ_xml2sql_pic01.jpg
    375 KB · Views: 483
  • civ_xml2sql_pic02.jpg
    civ_xml2sql_pic02.jpg
    298.8 KB · Views: 432
This tool is gold.
Thanks for the work!

Sadly, I just converted my core files some days before by hand - but there are still files that wait to be converted... ;)
 
Top Bottom