OOXMLPrettyPrint: Populate the standalone-attribute always to avoid differences in the resulting XML files from Excel and POI

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2015-07-08 05:57:32 +00:00
parent 5845a41b78
commit 13d04a1319
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public class OOXMLPrettyPrint {
try {
if(name.endsWith(".xml") || name.endsWith(".rels")) {
Document document = documentBuilder.parse(new InputSource(file.getInputStream(entry)));
document.setXmlStandalone(true);
pretty(document, out, 2);
} else {
System.out.println("Not pretty-printing non-XML file " + name);