summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2018-09-30 18:14:46 +0000
committerPJ Fanning <fanningpj@apache.org>2018-09-30 18:14:46 +0000
commit510947d6660a376228b821d76dab24ddfc6c467f (patch)
tree35c4a993206030f3c71c0aa77c8af764e702f5de
parent874687c490d30c6107c95ed3aab90d37b013f63b (diff)
downloadpoi-510947d6660a376228b821d76dab24ddfc6c467f.tar.gz
poi-510947d6660a376228b821d76dab24ddfc6c467f.zip
use StaxHelper to get event factory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842402 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java3
1 files changed, 2 insertions, 1 deletions
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);