I’m trying to get some nice charts in flash together for a little side project of mine.
The problem I am trying to overcome is that the chart production code requires xml-like data input to do the graphing. At present I only have the data in html files, so I need to convert them to xml or strip the data from them and push it out into xml.
After googling a bit I came across a very simple solution on the IBM developer site. Simply passing a couple of parameters to “tidy” you can produce XHTML from legacy HTML files:
tidy -asxhtml -numeric file.xml
You can find out more about tidy or grab a copy here.
The next step will be to remove the extra code from the generated file and leave just the data for the graphs.