You’d have to look at using the Mendix SDK. You would need to write some JavaScript / Typescript to query the domain model and generate XML from that. https://docs.mendix.com/apidocs-mxsdk/mxsdk/finding-things-in-the-model/ I hope this helps.