Code example for Document

Methods: getElementsByTagNameNS

0
     *  
     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Doesn't verify DOMException.", 
        method = "removeNamedItemNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testRemoveNamedItemNS1() throws Throwable { 
        Document doc;
        NamedNodeMap attributes;
        Node element;
        Attr attribute;
        NodeList elementList;
        doc = (Document) load("staffNS", builder);
        elementList = doc.getElementsByTagNameNS("http://www.nist.gov",
                "address"); 
        element = elementList.item(1);
        attributes = element.getAttributes();