From b37d198daa0dfccca7784d57b6a16cd4e8a14a0c Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 14 Nov 2015 02:41:48 +0000 Subject: [PATCH] Add default XmlOptions to XMLBeans parsing git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1714288 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java index 87278f701a..283981d99d 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFMetroShape.java @@ -21,6 +21,7 @@ package org.apache.poi.xslf.usermodel; import java.io.ByteArrayInputStream; import java.io.IOException; +import org.apache.poi.POIXMLDocumentPart; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.opc.PackagePart; @@ -48,7 +49,7 @@ public class XSLFMetroShape { try { pkg = OPCPackage.open(new ByteArrayInputStream(metroBytes)); PackagePart shapePart = pkg.getPart(shapePN); - CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream()); + CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream(), POIXMLDocumentPart.DEFAULT_XML_OPTIONS); XSLFGroupShape xgs = new XSLFGroupShape(gs, null); return xgs.getShapes().get(0); } finally { -- 2.39.5