Write xmi