# File lib/roxml.rb, line 452
    def to_xml
        root = REXML::Element.new(tag_name)
        tag_refs.each do |ref|
            v = __send__(ref.accessor)
            if v
                root = ref.update_xml(root, v)
            end
        end
        root
    end