Code example for DOMConfiguration

Methods: canSetParameter, getParameter, setParameter

0
        assertSupported("well-formed", false); 
        assertSupported("well-formed", true); 
    } 
 
    public void testMissingParameter() { 
        assertFalse(domConfiguration.canSetParameter("foo", true));
        try { 
            domConfiguration.getParameter("foo");
            fail();
        } catch (DOMException e) {
        } 
        try { 
            domConfiguration.setParameter("foo", true);
            fail();
        } catch (DOMException e) {
        } 
    } 
 
    public void testNullKey() { 
        try { 
            domConfiguration.canSetParameter(null, true);