Added ability to print xml of current graph