Package org.docx4j.utils
Class XPathFactoryUtil
java.lang.Object
org.docx4j.utils.XPathFactoryUtil
public class XPathFactoryUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description XPathFactoryUtil()
-
Method Summary
Modifier and Type Method Description static javax.xml.xpath.XPathFactory
getXPathFactory()
static javax.xml.xpath.XPath
newXPath()
static void
setxPathFactory(javax.xml.xpath.XPathFactory xPathFactory)
Specify the XPath factory used in getJAXBNodesViaXPath.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
XPathFactoryUtil
public XPathFactoryUtil()
-
-
Method Details
-
setxPathFactory
public static void setxPathFactory(javax.xml.xpath.XPathFactory xPathFactory)Specify the XPath factory used in getJAXBNodesViaXPath. org.apache.xpath.jaxp.XPathFactoryImpl is recommended. Use something else at your own risk! Note that setting this currently doesn't affect the XPath implementation used in OpenDoPE processing.- Parameters:
xPathFactory
-- Since:
- 6.1.0
-
getXPathFactory
public static javax.xml.xpath.XPathFactory getXPathFactory() -
newXPath
public static javax.xml.xpath.XPath newXPath()
-