I took some idea from this https://github.com/sibaspage/mxgraph-with-angular2.git. I can run this code on my machine. I have created a graph on editor then I have exported that in xml. Now I want to import same xml on editor and want same graph back on editor.
Export and save working fine now, but when I click on import it open again a new graph instance.