Generating strong XML from Excel Spreadsheets
Posted: Thu Jan 31, 2008 9:53 am
Creating XML from Excel
So, I figured that XML is essentially a very repetitious process, involving some standard formatting and dumping in a lot of data... Yes?
And I know a good way to store a lot of data is in a spreadsheet, easy to link, easy to connect and link various parts (co-ordinates, bonuses, attacks, bombards) etc to the territory by putting them on the same line, so I thinks to myself... If I could combine the two, I could generate all of my XML from an excel spreadsheet..
With a little bit of playing I've been successful, and have generated perfectly structured, perfectly tested and applied XML for the Hypercube map using it...
If you are interested, I'd be happy to show you what I've done and talk you through the steps and processes, so you can speed up and simplify your XML creation, as well as make it stronger and more resilient. Of course, I've still gone through the whole thing line by line checking it against the map, but it saved me 50,000 character presses.
Here's the excel file I used for generating the XML for
http://www.sendspace.com/file/rkdqjm
Which generated most of the bulky XML.
The rest I added in in notepad...
XML can be found below
http://www.sendspace.com/file/rd9x4y
Have a look through it, and if you've got any questions, post away
So, I figured that XML is essentially a very repetitious process, involving some standard formatting and dumping in a lot of data... Yes?
And I know a good way to store a lot of data is in a spreadsheet, easy to link, easy to connect and link various parts (co-ordinates, bonuses, attacks, bombards) etc to the territory by putting them on the same line, so I thinks to myself... If I could combine the two, I could generate all of my XML from an excel spreadsheet..
With a little bit of playing I've been successful, and have generated perfectly structured, perfectly tested and applied XML for the Hypercube map using it...
If you are interested, I'd be happy to show you what I've done and talk you through the steps and processes, so you can speed up and simplify your XML creation, as well as make it stronger and more resilient. Of course, I've still gone through the whole thing line by line checking it against the map, but it saved me 50,000 character presses.
Here's the excel file I used for generating the XML for
http://www.sendspace.com/file/rkdqjm
Which generated most of the bulky XML.
The rest I added in in notepad...
XML can be found below
http://www.sendspace.com/file/rd9x4y
Have a look through it, and if you've got any questions, post away