Updated so that generate xml actually generates and populates the modal
form with the xml