LSSerializer ser = createLSSerializer(format);
LSOutput out = domImplementationLS.createLSOutput();
out.setCharacterStream(w);
ser.write(node,out);
} catch(Exception e) {
throw new XMLException(e,"Error while converting XML document to string"); // $NLS-AbstractXercesDriver.ErrorwhileconvertingXMLdocumentto.1-1$
}
}