title: Converting XML to SVG in mxGraph javascript
body: <p>I am trying to convert mxGraph's XML graph into SVG using JavaScript. Having XML string, I need to parse it into an SVG for distributing further to the html. 
  <a href="https://stackoverflow.com/questions/44179673/drawio-mxgraph-using-xmltosvg-loses-shapes-information">This post</a> shows exactly what I need to do with the <a href="https://github.com/jgraph/mxgraph/blob/master/java/examples/com/mxgraph/examples/Xml2Svg.java" rel="nofollow noreferrer">solution implemented in Java</a> . I can parse XML into graph and cannot render graph into SVG, cannot  seem to find method that would be equivalent to drawCells() method in mxCellRenderer.js.</p>
  
  <p>Would anyone be able to help on converting XML to SVG using JavaScript only (available mxGraph library)?</p>