Class XPathFactoryUtil

java.lang.Object
org.docx4j.utils.XPathFactoryUtil

public class XPathFactoryUtil extends Object
  • Constructor Details

    • XPathFactoryUtil

      public XPathFactoryUtil()
  • Method Details

    • setxPathFactory

      public static void setxPathFactory(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 XPathFactory getXPathFactory()
    • newXPath

      public static XPath newXPath()