tags:

views:

185

answers:

3

I've a requirement something like this. I've to convert an Excel to XML Spreadsheet. After googling, I found jexcelApi. But it's not retaining the format.

Any suggestions on How to convert an Excel to XML format, retaining the Excel formatting?

Thanks :)

+1  A: 

Use Apache POI

Martin K.
Actually, I used POI only to generate the Excel file. My Java Web Service have to give the Excel in XML Spreadsheet to a .NET client. The .NET code will in turn convert the XML Spreadsheet to Excel and present it to user. I was not sure that POI can be used to convert Excel to XML UNTIL I saw this(http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html)!! :)
HanuAthena
A: 

Maybe you like this one too...it is not Open Source but matches your needs: http://www.xml.com/pub/a/2002/01/09/q-and-a.html

Edit: Comments on that Article are interessting too!

bastianneu
A: 

You can use "cz excel converter" to Excel to xml Format, and this tool supports command line interface, so you can call it from your application, you can get demo version and more information from http://www.convertzone.com/excel_converter/help.htm

If you need batch convert converts PDF, XLS, HTML, XML, MTH, CSV, TEXT, DBF, Lotus 1-2-3, WKS, WQ1, SLK, DIF and more, "cz excel converter" will help you, it can convert many excel xls files at one time.

Please note: To support XML and MHTML format, you must install MS Excel 2002 or above.

regards
flyaga

flyaga