From 510947d6660a376228b821d76dab24ddfc6c467f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 30 Sep 2018 18:14:46 +0000 Subject: [PATCH] use StaxHelper to get event factory git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842402 13f79535-47bb-0310-9956-ffa450edef68 --- .../opc/internal/marshallers/PackagePropertiesMarshaller.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java index 757fc97590..06491a0f14 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java @@ -29,6 +29,7 @@ import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart; import org.apache.poi.openxml4j.opc.internal.PartMarshaller; import org.apache.poi.ooxml.util.DocumentHelper; +import org.apache.poi.util.StaxHelper; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -38,7 +39,7 @@ import org.w3c.dom.Element; public class PackagePropertiesMarshaller implements PartMarshaller { private final static Namespace namespaceDC, namespaceCoreProperties, namespaceDcTerms, namespaceXSI; static { - final XMLEventFactory f = XMLEventFactory.newInstance(); + final XMLEventFactory f = StaxHelper.newXMLEventFactory(); namespaceDC = f.createNamespace("dc", PackagePropertiesPart.NAMESPACE_DC_URI); namespaceCoreProperties = f.createNamespace("cp", PackagePropertiesPart.NAMESPACE_CP_URI); namespaceDcTerms = f.createNamespace("dcterms", PackagePropertiesPart.NAMESPACE_DCTERMS_URI); -- 2.39.5