Update to the parse method to create xml