Generate xml from diagrmJs


#1

I’m working on diagramJs lib , I would like to know how to generate the xml using diagramJS.

If I drag start event and end event I should be getting xml similar to bpmn application generating. Please suggest on how to proceed ?


#2

There’s an important distinction between diagram-js and bpmn-js. diagram-js is a tool for creating diagrams. It doesn’t know about XML or BPMN or anything like that. bpmn-js is built on top of diagram-js, knows about BPMN with the help of bpmn-moddle and knows how to deal with XML thanks to moddle-xml. It seems like you’re confusing quite a few things here. What are you trying to build? What made you decide to use diagram-js?