html to xml conversion

| | TrackBacks (1)
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.html > 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.
digg| bookmark

Categories

1 TrackBacks

Listed below are links to blogs that reference this entry: html to xml conversion.

TrackBack URL for this entry: http://www.mneylon.com/cgi-bin/mt/mt-tb.cgi/875

» from Michele Neylon :: Pensieri ¼ Blog Archive ¼ HTML validator for Firefox
Michele Neylon - cartoon picture

About this Entry

This page contains a single entry by Michele Neylon published on March 13, 2005 1:01 PM.

Sugar CRM - Open Source Extensions was the previous entry on this site.

Eircom to offer Broadband (really!) is the next entry on this site.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.1