Code example for Document

Methods: getDomConfig

0
    String[] infosetImpliesTrue = { "namespace-declarations", "well-formed",
            "element-content-whitespace", "comments", "namespaces" }; 
 
    @Override protected void setUp() throws Exception { 
        document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
        domConfiguration = document.getDomConfig();
    } 
 
    public void testCanonicalForm() { 
        assertEquals(false, domConfiguration.getParameter("canonical-form"));
        assertSupported("canonical-form", false); 
        assertUnsupported("canonical-form", true); 
    } 
 
    public void testCdataSections() { 
        assertEquals(true, domConfiguration.getParameter("cdata-sections"));
        assertSupported("cdata-sections", false); 
        assertSupported("cdata-sections", true); 
    } 
 
    public void testCheckCharacterNormalization() {