DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Saving A Nokogiri XML Document
require 'nokogiri'
Nokogiri.new()
buffer = File.open('deko6.svg','r').read
doc = Nokogiri::XML(buffer)
File.open('fudge.xml','w') {|f| doc.write_xml_to f}





