transformer.setOutputProperty(OutputKeys.INDENT,format.indent>0?"yes":"no"); // $NON-NLS-1$ $NON-NLS-2$
transformer.setOutputProperty(OutputKeys.ENCODING,format.encoding);
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,format.xmlDecl?"no":"yes"); // $NON-NLS-1$ $NON-NLS-2$
transformer.transform(domSource, result);
} catch(Exception e) {
throw new XMLException(e,"Error while converting XML document to string"); // $NLS-AbstractDriver.ErrorwhileconvertingXMLdocumentto-1$
}
}