assertNotNull( root.selectSingleNode("node/attribute"));
List list = root.selectNodes("node/attribute");
assertEquals(2, list.size());
Node attr1 = (Node) list.get(0);
assertEquals("another:attribute", attr1.selectSingleNode("@name").getStringValue());
assertEquals("test value", attr1.selectSingleNode("@value").getStringValue());
Node attr2 = (Node)list.get(1);
assertEquals("my:attr", attr2.selectSingleNode("@name").getStringValue());
assertEquals("myattrvalue", attr2.selectSingleNode("@value").getStringValue());