xml to graph