try {
File xmlFile = new File("c:\\temp
myXML.xml");
dom.saveAs(xmlFile);
}
catch (ValidationException e) {
e.printStackTrace();
}
try {
File xmlFile = new File("c:\\temp
myXML.xml");
dom.saveAs(xmlFile);
}
catch (ValidationException e) {
e.printStackTrace();
}