175176177178179180181182183184185
element.setAttribute(attribute); Document doc = new Document(element); XPath xpath = new JDOMXPath( "//namespace::node()" ); List results = xpath.selectNodes( doc ); assertEquals( 3, results.size() ); }
196197198199200201202203204205206
root.addContent(element); Document doc = new Document(root); XPath xpath = new JDOMXPath( "/*/*/namespace::node()" ); List results = xpath.selectNodes( doc ); assertEquals( 4, results.size() ); }