Chris@0: xml.instruct! Chris@0: xml.project do Chris@0: xml.id @project.id Chris@0: xml.name @project.name Chris@0: xml.identifier @project.identifier Chris@0: xml.description @project.description Chris@0: xml.homepage @project.homepage Chris@0: Chris@0: xml.custom_fields do chris@37: @project.visible_custom_field_values.each do |custom_value| Chris@0: xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name Chris@0: end Chris@0: end unless @project.custom_field_values.empty? Chris@0: Chris@0: xml.created_on @project.created_on Chris@0: xml.updated_on @project.updated_on Chris@0: Chris@0: xml.trackers do Chris@0: @project.trackers.each do |tracker| Chris@0: xml.tracker(:id => tracker.id, :name => tracker.name) Chris@0: end Chris@0: end Chris@0: end