Code example for Document

Methods: getElementsByTagNameNS

0
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies '*' as the first parameter.", 
        method = "getElementsByTagNameNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testGetElementsByTagNameNS2() throws Throwable { 
        Document doc;
        Element docElem;
        Element element;
        NodeList childList;
         
        doc = (Document) load("staffNS", builder);
        docElem = doc.getDocumentElement();
        element = doc.createElementNS("test", "employeeId");
        docElem.appendChild(element);
        childList = doc.getElementsByTagNameNS("*", "employeeId");
        assertEquals("documentgetelementsbytagnameNS02", 6, childList
                .getLength());
    } 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE,