doc = parser.getDocument(args[0]);
} catch (Exception e) {
System.err.println(e);
}
new DOMWriter(new PrintWriter(System.out)).print(doc);
System.out.println("");
Document document = parser.getDocument();
Element michi = parser.newElementNode(document, "Employee");
michi.setAttribute("Id", "michi");
michi.appendChild(parser.newTextNode(document, "Michi"));
Element employees = parser.newElementNode(document, "Employees");
employees.appendChild(parser.newTextNode(document, "\n"));
employees.appendChild(michi);
employees.appendChild(parser.newTextNode(document, "\n"));
document.appendChild(employees);
new DOMWriter(new PrintWriter(System.out)).print(document);
System.out.println("");
}