@Test public void handlesXmlDeclarationAsDeclaration() {
String html = "<?xml encoding='UTF-8' ?><body>One</body><!-- comment -->";
Document doc = Jsoup.parse(html, "", Parser.xmlParser());
assertEquals("<?xml encoding='UTF-8' ?> <body> One </body> <!-- comment -->",
StringUtil.normaliseWhitespace(doc.outerHtml()));
assertEquals("#declaration", doc.childNode(0).nodeName());
assertEquals("#comment", doc.childNode(2).nodeName());
}
@Test public void xmlFragment() {