# File lib/nokogiri/xml/node.rb, line 726 def write_xml_to io, options = {} if options.is_a?(String) $stderr.puts("Node#write_xml_to(io, encoding) is deprecated and will be removed in\nNokogiri version 1.4.0 *or* after June 1 2009.\nYou called write_xml_to from here:\n\n\#{caller.first}\n\nPlease change to Node#write_xml_to(io, :encoding => \#{options})\n") options = { :encoding => options } end options[:save_with] ||= SaveOptions::FORMAT | SaveOptions::AS_XML write_to io, options end