Code example for Document

Methods: createAttributeNS

0
        String qualifiedName = "test";
 
        String nodeName;
 
        doc = (Document) load("staffNS", builder);
        attribute = doc.createAttributeNS(namespaceURI, qualifiedName);
        nodeName = attribute.getNodeName();
 
        assertEquals("documentcreateattributeNS01", "test", nodeName);
    } 
 
    /** 
     * Runs the test case. 
     * 
     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
     */ 
    public void testCreateAttributeNS2() throws Throwable { 
        Document doc;
        Attr attribute1;
        Attr attribute2;