class Nokogiri::XML::Node

def to_xml options = {}

See Node#write_to for a list of +options+

doc.to_xml(:indent => 5, :encoding => 'UTF-8')

Serialize this Node to XML using +options+
##
def to_xml options = {}
  options[:save_with] |= SaveOptions::DEFAULT_XML if options[:save_with]
  options[:save_with] = SaveOptions::DEFAULT_XML unless options[:save_with]
  serialize(options)
end