updated else statement to return parsed xml (tests now passing)