Added DAG to XML conversion