Generate XML from canvas diagram

Hi,

How can I generate XML for a diagram in goJS?

GoJS does not have built-in support for generating XML, but it should not be too hard to read and write XML in the same manner as Model.toJson and Model.fromJson using JavaScript support for XML. It really depends on what schema you want to use for your XML.

In the simplest case of reading XML, you can see an example at Page Not Found -- Northwoods Software. But in general you will need to write your own code to both read and write XML.