public void testPrologAndEpilog()
throws IOException, ParsingException {
serializeParseAndCompare(doc);
doc.insertChild(new Comment("Hello"), 0);
serializeParseAndCompare(doc);
doc.insertChild(new DocType("root"), 0);
serializeParseAndCompare(doc);
doc.insertChild(new ProcessingInstruction("test", "some data"),
0);
serializeParseAndCompare(doc);
doc.insertChild(new Comment("Goodbye"), 0);
serializeParseAndCompare(doc);
doc.insertChild(
new ProcessingInstruction("goodbye", "some data"), 0);
serializeParseAndCompare(doc);
doc.appendChild(new Comment("Hello"));
serializeParseAndCompare(doc);
doc.appendChild(
new ProcessingInstruction("test", "some data"));
serializeParseAndCompare(doc);