Code example for Document

Methods: createElementNSgetDoctype

     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies that setNamedItemNS throws DOMException.", 
        method = "setNamedItemNS", 
        args = {org.w3c.dom.Node.class}
    public void testNotationsSetNamedItemNS() throws Throwable { 
        Document doc;
        NamedNodeMap notations;
        DocumentType docType;
        Element elem;
        doc = (Document) load("hc_staff", builder);
        docType = doc.getDoctype();
        if (!(("text/html".equals(getContentType())))) {
Connect your IDE to all the code out there  Get Codota for Java