Instead of passing the complete XML response to the page, only the part where the interesting fields for a course are stored should be passed as a parameter. It also shortens the code in the html.erb file that is necessary to pull out the wanted fields.