Code example for NamespaceContext

Methods: getNamespaceURI

0
     */ 
    @Test
    public void findsNonBoundNamespaces() throws Exception {
        final NamespaceContext ctx = new XPathContext();
        MatcherAssert.assertThat( 
            ctx.getNamespaceURI("some-other-unbound-prefix"),
            Matchers.equalTo(XMLConstants.NULL_NS_URI)
        ); 
    } 
 
} 
Experience pair programming with AI  Get Codota for Java