diff --git a/pom.xml b/pom.xml index 8b5c5551..c7a7a7cb 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 com.github.pjfanning excel-streaming-reader - 5.1.2-20251222_talend + 5.1.2-20260113_talend excel-streaming-reader Streaming Excel reader https://github.com/pjfanning/excel-streaming-reader @@ -90,6 +90,21 @@ 2.9.2 true + + net.sf.saxon + Saxon-HE + 11.4 + + + org.apache.httpcomponents.client5 + * + + + org.apache.httpcomponents.core5 + * + + + junit junit diff --git a/src/main/java/com/github/pjfanning/xlsx/XmlUtils.java b/src/main/java/com/github/pjfanning/xlsx/XmlUtils.java index 57d00b3d..10e59540 100644 --- a/src/main/java/com/github/pjfanning/xlsx/XmlUtils.java +++ b/src/main/java/com/github/pjfanning/xlsx/XmlUtils.java @@ -1,6 +1,7 @@ package com.github.pjfanning.xlsx; import com.github.pjfanning.xlsx.exceptions.ParseException; +import net.sf.saxon.xpath.XPathFactoryImpl; import org.apache.poi.ooxml.util.DocumentHelper; import org.w3c.dom.Document; import org.w3c.dom.NodeList; @@ -31,7 +32,7 @@ public static Document readDocument(InputStream inp) throws IOException, SAXExce public static NodeList searchForNodeList(Document document, String xpath) throws ParseException { try { - XPath xp = XPathFactory.newInstance().newXPath(); + XPath xp = new XPathFactoryImpl().newXPath(); xp.setNamespaceContext(transitionalFormatNamespaceContext); NodeList nl = (NodeList)xp.compile(xpath).evaluate(document, XPathConstants.NODESET); if (nl.getLength() == 0) {