Code example for Document

Methods: getElementsByTagNameNS

0
    } 
    public void testGetElementsByTagNameNS6() throws Throwable { 
        Document doc;
        NodeList elementList;
        doc = (Document) load("staffNS", builder);
        elementList = doc.getElementsByTagNameNS("http://www.nomatch.com",
                "address"); 
        assertEquals("matchSize", 0, elementList.getLength());
    } 
    public void testGetElementsByTagNameNS7() throws Throwable { 
        Document doc;
        NodeList elementList;
        doc = (Document) load("staffNS", builder);
        elementList = doc.getElementsByTagNameNS("http://www.nist.gov",
                "address"); 
        assertEquals("addresses", 3, elementList.getLength());
    } 
    public void testGetElementsByTagNameNS8() throws Throwable { 
        Document doc;
        Element docElem;
        NodeList newList;