public void test_XMLNode_hasChild() { string xmlstr = "<annotation>\n" + " <test xmlns=\"http://test.org/\" id=\"test\">test</test>\n" + "</annotation>"; XMLNode node = new XMLNode(); assertTrue( node.hasChild( "test") == false ); node = null; node = XMLNode.convertStringToXMLNode(xmlstr,null); assertTrue( node.hasChild( "test") == true ); node = null; }