@ NotNull public static XPath createXPath ( @ Nullable final String ... values ) { final NamespaceContext context = new NamespaceContextMap ( values ) ; final XPath xPath = XPathFactory . newInstance ( ) . newXPath ( ) ; xPath . setNamespaceContext ( context ) ; return xPath ; }
Creates a new XPath with a configured namespace context .