switched to implement functionality for modifying xml