Converting a .xls file to .html

Linda Octalina linda_octa at
Wed Dec 3 13:13:45 CET 2008

Do you have styles attached to the text of the document in the xls? (bold, italic, etc)
if not, then you can just do the mapping by creating table and cells by yourself... (or xslt)

 {^(00)^} LiNdA OcTaLiNa

From: Jeremiah Dodds <jeremiah.dodds at>
To: python-list at
Sent: Wednesday, December 3, 2008 9:50:49 PM
Subject: Re: Converting a .xls file to .html

On Wed, Dec 3, 2008 at 5:54 AM, tarun <tarundevnani at> wrote:

Hello All,
I've a .xml file (saved as .xls) that can be opened in Microsoft excel. I want to write python code that converts this excel file into .html (so that it can be viewed as is in an explorer).
Can any one help?

A quick google search shows , and a few other libraries for reading xls files. I don't use excel, so I can't test it. There may not be a library for going straight from xls -> html, but if you can get xls -> text  or a list or whatnot, then you could use pretty much any html generation tool you want on it, python's got plenty of templating libraries available.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list