@Test
    public void testParseAndWrite() {
        String xml = """
                     <foo>
                       <bar baz="quux"/>
                       <moo baah="boo">mux</moo>
                       <!-- zoink -->
                     </foo>""";
        Document document = XML.getDocument(xml);
        assertEquals(xml, XML.toString(document));
        assertEquals(xml, XML.toString(document.getDocumentElement()));
        assertEquals("<bar baz=\"quux\"/>", XML.toString(XML.getChild(document.getDocumentElement(), "bar")));
        assertEquals("mux", XML.toString(XML.getChild(document.getDocumentElement(), "moo").getFirstChild()));
    }
@author Bjorn Borud
@author Steinar Knutsen
vespajlib/src/test/java/com/yahoo/text/XMLTestCase.java