Open excel-xml with apache poi

The user can save the excel document as .xls or as an xml table. The result is an xml file with a fixed structure, and Excel can fix it.

Is it possible to open this excel file type with apache-poi in java?

Thank you, Andrey.

+4
source share
1 answer

If you mean XML-tablea file like this (created using the Save As option in Excel):

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40">
 <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">

Then the answer is: No, you cannot open it using Apache POI .

POI supports Microsoft Excel 97 (-2007) (BIFF8) .xls and Microsoft Excel XML (2007+) (OOXML) .xlsx file formats.

- , - ZIP XML . ( : .xlsx.zip ZIP)

.NET/#, XML- Excel, POI: http://spreadsheet.codeplex.com/

, , Google .

+5

Source: https://habr.com/ru/post/1533908/


All Articles