xml.render_choice do
          xml.render_choice(:ident => item_ident, :rcardinality => 
rcardinality, :rtiming => rtiming)
            (1..qammount).each do
              xml.response_label do
                xml.material do
                    xml.mattext(response_mattext)
                end
              end
            end
        end

thanks for that. Should have kept on looking, I blame the man flu I had. 
I'm having issues with trying to give the parent class the tags. It's 
straight forward giving tags that close on the same line extra items. 
e.g.

xml.render_choice(:ident => item_ident, :rcardinality => rcardinality, 
:rtiming => rtiming)

gives
<render_choice ident="NSFB_electronics_01_v1p2" rcardinality="single" 
rtiming="No"/>

But I need to place other tags between this.  Any ideas? I can't see 
anything in the help file to suggest that it's possible.



-- 
Posted via http://www.ruby-forum.com/.