How to download BPMN.js diagram xml in .bpmn file format

  1. Onclick download button i want to download the created BPMN diagram in .bpmn format. How to download and store the file in my local folder? kindly provide codesandbox link if any?

  2. Also how to import external .BPMN file ?

Thanks in advance.

Please spend some time to provide the relevant context. What did you achieve already? Where did you get stuck?

Regarding downloading, use our BpmnViewer#saveXML and BpmnViewer#saveSVG APIS. Please investigate techniques for client side download to achieve the actual download. This is not a matter of our tools but rather basic browser stuff that is well documented on the internet.