# File lib/edi4r/rexml.rb, line 52 def to_xml( xel_parent ) xel = REXML::Element.new( normalized_class_name ) xel.attributes["name"] = @name xel_parent.elements << xel xhd = to_xml_header( xel ) each { |obj| obj.to_xml( xel ) } xtr = to_xml_trailer( xel ) [xel, xhd, xtr] # You might want to add something ... end