writer.write(document, lsOutput);
return stringWriter.toString();
}
catch (ParserConfigurationException ex) {
throw new XMLException(null, ex);
}
catch (SAXException ex) {
throw new XMLException(null, ex);
}
catch (ClassNotFoundException ex) {
throw new XMLException(null, ex);
}
catch (InstantiationException ex) {
throw new XMLException(null, ex);
}
catch (IllegalAccessException ex) {
throw new XMLException(null, ex);
}
}