Element root = new Element("test");
xomDocument = new Document(root);
xomDocument.insertChild(type, 0);
xomDocument.insertChild(new ProcessingInstruction(
"xml-stylesheet", "href=\"file.css\" type=\"text/css\""), 1);
xomDocument.insertChild(new Comment(" test "), 2);
xomDocument.appendChild(new Comment("epilog"));
root.addNamespaceDeclaration("xlink",
"http://www.w3.org/TR/1999/xlink");
root.appendChild("Hello dear\r\n");
Element em = new Element("em");
root.appendChild(em);