public void testSimpleXmlParse() {
String xml = "<doc id=2 href='/bar'>Foo <br /><link>One</link><link>Two</link></doc>";
XmlTreeBuilder tb = new XmlTreeBuilder();
Document doc = tb.parse(xml, "http://foo.com/");
assertEquals("<doc id=\"2\" href=\"/bar\">Foo <br /><link>One</link><link>Two</link></doc>",
TextUtil.stripNewlines(doc.html()));
assertEquals(doc.getElementById("2").absUrl("href"), "http://foo.com/bar");
}
@Test
public void testPopToClose() {