]> source.dussan.org Git - poi.git/commitdiff
use StaxHelper to get event factory
authorPJ Fanning <fanningpj@apache.org>
Sun, 30 Sep 2018 18:14:46 +0000 (18:14 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 30 Sep 2018 18:14:46 +0000 (18:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842402 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/PackagePropertiesMarshaller.java

index 757fc975907426fb748e2e83292253fe6c422006..06491a0f1495e88a5f9aa17f363a6f8393322f23 100644 (file)
@@ -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);