« @Bud: For "F1 Newbies" & Next Steps For My Mini-Project | Main | RE: Response to Joern's Blog (Chidambaram's Blog) »

You need to create your own XML file? + Mini-Project Progress

How yesterday in my mini-project strategy mentioned, I first needed to create a XML-File with all the Formula One Race Tracks.

And I was thinking about an easy way to create this file ... I was thinking about ... repeating data structures and about easy maintenance of the data... and finally I though, OK, why not using my favorite standard tool - that is in 99.99% of the cases a solution ;) - MS EXCEL ;)

This is very simple to do with the "=Concatenate(cell01, cell02, cell03, ...)" build in function that can build text strings.... or several small and then one large XML string!!!

The advantages of this way to create the xml file is that you have a nice Excel Sheet and the cells with the data are separated from the cells with the xml tags. Moreover when you link the tag cells, you can always just change the names of the xml tags in one place. And the maintenance - in my case of the race track data - is very simple, because you can edit the data directly without searching in an endless xml string.

Anyhow, one picture says more than thousand words: Therefore here how it looks:
XlsToXml.jpg

I have just uploaded my FormulaOneRaceTracks2007ByJoern.xls file. Basically you can just copy the cell "A2" and paste it into an empty editor and save it as a *.xml file. This should than look like my FormulaOneRaceTracks2007ByJoern.xml file.

If you need to create your own xml file, feel free to use my xls file as a starting point ;)

I found that this was a pretty easy way to create a XML file ;-)


And maybe what can save a lot of time is, when you "validate" your xml file FIRST, BEFORE you start using it with AJAX and getting error messages (because the xml file has bugs!!!).

A good validation service is for example validome.org. There you can choose as well, that your xml file is only validated concerning the "Well-Formedness". This is what I used and this is the validation result for my xml file.


Regarding my Mini-Project, you see, I have collected already all my data. Now the next step is to build and layout the page, where I can integrate this data.

-Joern

TrackBack

Listed below are links to weblogs that reference You need to create your own XML file? + Mini-Project Progress:

» Response to Joern's Blog from Chidambaram's Blog
In response to Joern's blog ...What prevents you from using a regular XML editor ...for example XML Operator is one free xml editor that I know and used a lot. There are many more available free on the web. With... [Read More]

» RE: Response to Joern's Blog (Chidambaram's Blog) from Joern's Blog
Chidambaram wrote: "In response to Joern's blog ...What prevents you from using a regular XML editor ...for example XML Operator is one free xml editor that I know and used a lot. There are many more available free on the... [Read More]

» Recover the Mini Project! Status Update for "Formula One Tracks & News" from Joern's Blog
Well, after a whole while of working only for our MapYouBuddies Team Project, I started yesterday to "recover" my Mini Project (Project Description and Iteration 1 Announcement) and started to build the layout of my site. After I finished the... [Read More]