I am using Apache POI 3.8 but I tried with Apache POI 3.10 as well but it is
not working. 

Relationship target for Strict Open XMLDocument(*.docx) is 
-<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships";><Relationship
Target="webSettings.xml"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/webSettings";
Id="rId3"/><Relationship Target="settings.xml"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/settings";
Id="rId2"/><Relationship Target="styles.xml"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/styles";
Id="rId1"/><Relationship Target="theme/theme1.xml"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/theme";
Id="rId5"/><Relationship Target="fontTable.xml"
Type="http://purl.oclc.org/ooxml/officeDocument/relationships/fontTable";
Id="rId4"/></Relationships>

But for normal Word Document(.docx) 

-<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships";><Relationship
Target="webSettings.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings";
Id="rId3"/><Relationship Target="settings.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings";
Id="rId2"/><Relationship Target="styles.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
Id="rId1"/><Relationship Target="theme/theme1.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";
Id="rId5"/><Relationship Target="fontTable.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";
Id="rId4"/></Relationships>.

Apache POI code is always expecting 

PackageRelationship coreRel =
pkg.getRelationshipsByType("http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";).getRelationship(0);

Normal .docx format relationship.

Thanks and Regards,
Rathna.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Apache-POI-is-not-supporting-MS-Word-2013-Strict-Open-XML-Document-docx-tp5719328p5719330.html
Sent from the POI - User mailing list archive at Nabble.com.

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

Reply via email to