*/
public static void exportDocument(XMultiServiceFactory xMSF, XComponent xDoc,
String docType, String exportType, String fileURL)
throws com.sun.star.uno.Exception {
XDocumentHandler xDocHandWriter = XMLTools.getFileXMLWriter(xMSF, fileURL) ;
Any arg = new Any(new Type(XDocumentHandler.class), xDocHandWriter);
XInterface oExp = (XInterface)xMSF.createInstanceWithArguments(
"com.sun.star.comp." + docType + ".XML" + exportType + "Exporter",
new Object[] {arg});