Fixed xml parsing issue in graph builder