https://bz.apache.org/bugzilla/show_bug.cgi?id=58760

--- Comment #6 from Dominik Stadler <[email protected]> ---
The cause of the parsing problem is that the XML-files inside the .xlsx file
use a strange namespace

Your file has:

<ns0:Types
xmlns:ns0="http://schemas.openxmlformats.org/package/2006/content-types";>
  <ns0:Override
ContentType="application/vnd.openxmlformats-officedocument.theme+xml"
PartName="/xl/theme/theme1.xml" />
  <ns0:Override
ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"
PartName="/xl/styles.xml" />

whereas usually files use the default namespace as follows:

<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types";>
    <Default Extension="rels"
ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
    <Default Extension="xml" ContentType="application/xml"/>
    <Override PartName="/xl/workbook.xml"
ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>


Note the "ns0:" prefixes. It seems the parsing in POI does not take the
namespace into account here the way that Excel does.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to