MxCodec decode function not working with XML
问题 I'm developing an application in javascript with Angular7 and MxGraph library. I am able to save the MxGraph model into an XML with this code: var enc = new mx.mxCodec(mx.mxUtils.createXmlDocument()); var node = enc.encode(editor.graph.getModel()); this.xml = mx.mxUtils.getPrettyXml(node); But I'm not able to decode it, following APIs indications. I have also tried to paste the XML and try to decode it without success like this: // Usually I would do this: // var doc = mx.mxUtils.parseXml