title: from gojs convert json model to xml
body: <p>I am using gojs to create a class diagram and get the json model data, i understand you can read it from xml, is there a way of writing it to xml with XML DOM? Thank you</p>
  
  <p>jQuery.ajax({
        url: "class.xml",
        success: load,
        dataType: "xml"
      });</p>
  
  <p>function load(x) {
      var xml = jQuery(x.xml ? x.xml : x);
      classd.model = new go.GraphLinksModel(xml.find("node").toArray(), xml.find("link").toArray());</p>
  
  <p>}</p>