GoalModelEditor/FrontEnd/public/js/projectEdit/graphXML.js
/**
 * Parses the graph to XML, to be saved/loaded in a differenct session.
 */
Parses the graph to XML, to be saved/loaded in a differenct session.
Parses the graph to XML to be saved / loaded in a differenct session .
function parseToXML(graph) {
    let encoder = new mxCodec();
    let node = encoder.encode(graph.getModel());
    let xml = mxUtils.getPrettyXml(node);
    return xml;
}
function parseToXML ( graph ) { let encoder = new mxCodec ( ) ; let node = encoder . encode ( graph . getModel ( ) ) ; let xml = mxUtils . getPrettyXml ( node ) ; return xml ; }
Parses the graph to XML, to be saved/loaded in a differenct session.
Parses the graph to XML to be saved / loaded in a differenct session .