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
jQuery.ajax({ url: "class.xml", success: load, dataType: "xml" });
function load(x) { var xml = jQuery(x.xml ? x.xml : x); classd.model = new go.GraphLinksModel(xml.find("node").toArray(), xml.find("link").toArray());
}
No comments:
Post a Comment