List of usage examples for javax.xml.parsers DocumentBuilderFactory isNamespaceAware
public boolean isNamespaceAware()
From source file:com.adaptris.util.text.xml.XPath.java
/** * @see XPath#newXPathInstance(DocumentBuilderFactoryBuilder, NamespaceContext) *//* w w w .j av a 2s . c o m*/ public static XPath newXPathInstance(DocumentBuilderFactory builder, NamespaceContext namespaceCtx) { // INTERLOK-2255 XPath xpathToUse = new XPath(namespaceCtx); if (builder != null && !builder.isNamespaceAware()) { xpathToUse = new XPath(namespaceCtx, XPathFactory.newInstance()); } return xpathToUse; }