Update xml_writer.rb