added functionality to modify xml files