]> source.dussan.org Git - poi.git/commitdiff
Add default XmlOptions to XMLBeans parsing
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 14 Nov 2015 02:41:48 +0000 (02:41 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 14 Nov 2015 02:41:48 +0000 (02:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1714288 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java

index 87278f701a0d566f4ad542763d6f41d583e5fbd8..283981d99ddc69b02778441b1765127b9404eb72 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.poi.xslf.usermodel;
 import java.io.ByteArrayInputStream;\r
 import java.io.IOException;\r
 \r
+import org.apache.poi.POIXMLDocumentPart;\r
 import org.apache.poi.openxml4j.exceptions.InvalidFormatException;\r
 import org.apache.poi.openxml4j.opc.OPCPackage;\r
 import org.apache.poi.openxml4j.opc.PackagePart;\r
@@ -48,7 +49,7 @@ public class XSLFMetroShape {
         try {\r
             pkg = OPCPackage.open(new ByteArrayInputStream(metroBytes));\r
             PackagePart shapePart = pkg.getPart(shapePN);\r
-            CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream());\r
+            CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream(), POIXMLDocumentPart.DEFAULT_XML_OPTIONS);\r
             XSLFGroupShape xgs = new XSLFGroupShape(gs, null);\r
             return xgs.getShapes().get(0);               \r
         } finally {\r