Exporting BPMN xml from bpmn-js?

Sorry if this has been answered elsewhere, but is it possible to export bpmn xml from the web based tools (bpmn-js)?

Heiko

This is core functionality. modeler#saveXML is your friend.

Thanks, I wasn’t ware of it.