Ok, I worked out why I was getting the 'can't find WriterFactory error.' I needed to include the 'xmisoap.jar' file in the classpath, having done this however the following class can now not be found by XMIFile : com.ibm.xml.parser.MIME2Java Any ideas anyone?