hi,jason.
I saw SpreadsheetMLPackage class source code,the method of 'load' support xml parameter,but invoke that,occur exception,infomation as follow:
org.docx4j.openpackaging.exceptions.Docx4JException: Unrecognised package
at org.docx4j.convert.in.FlatOpcXmlImporter.get(FlatOpcXmlImporter.java:186)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:536)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:387)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:270)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:250)
at org.docx4j.openpackaging.packages.SpreadsheetMLPackage.load(SpreadsheetMLPackage.java:104)
at com.icourt.common.utils.Xlsx4jUtil.loadOPCXml(Xlsx4jUtil.java:229)
at com.icourt.common.utils.Xlsx4jUtil.main(Xlsx4jUtil.java:251)
Exception in thread "main" org.docx4j.openpackaging.exceptions.Docx4JException: Couldn't load xml from stream
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:539)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:387)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:270)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:250)
at org.docx4j.openpackaging.packages.SpreadsheetMLPackage.load(SpreadsheetMLPackage.java:104)
at com.icourt.common.utils.Xlsx4jUtil.loadOPCXml(Xlsx4jUtil.java:229)
at com.icourt.common.utils.Xlsx4jUtil.main(Xlsx4jUtil.java:251)
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Unrecognised package
at org.docx4j.convert.in.FlatOpcXmlImporter.get(FlatOpcXmlImporter.java:186)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:536)
... 6 more
breakpoint Debugging,i found problem in class FlatOpcXmlImporter where line 181.i don't understand,can not xlsx load flat opc xml?