add parse_XML method in generate_adjs_from_dependency_res.py