Tech Talk

Linux, Python, E51, Scripting…

Posts Tagged ‘xml

Demo-ing python XML abilities

without comments

I have been using python for a while now, but I never have to use the XML processing capabilities of this language! Yesterday I tried writing a quick and dirty way to convert an open office worksheet into a simpler XML. Actually not much reason to do this myself. Rama was doing something with worksheets and I decided to give this a shot. And within 15-20 minutes I have a simple XML output parsed out of the huge XML that open office format already is. That is precisely why I love writing python code.

Here is the script. Don’t bother commenting if the python language constructs are ill formed. I learn very slow if my work gets done before I learnt it all!

Written by abiya

October 24, 2007 at 5:20 am

Posted in python, samples, technical

Tagged with , , , ,