Update write_xml.rb