The com.idiominc.wssdk.deployment.WSDeploymentManager class in the server SDK has methods for importing and exporting TML (XML) files:
void exportObjects(WSObjectExportSpec[] specs, OutputStream out) throws WSException void importObjects(InputStream…