Send the selectedEntity xml correctly