Adding xml_writer.rb