class Nokogiri::XML::Node

def write_xml_to(io, options = {})

See Node#write_to for a list of options

doc.write_xml_to io, :encoding => 'UTF-8'

Write Node as XML to +io+ with +options+
##
def write_xml_to(io, options = {})
  options[:save_with] ||= SaveOptions::DEFAULT_XML
  write_to(io, options)
end