Saving A Nokogiri XML Document
Join the DZone community and get the full member experience.
Join For Free
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}
XML
Document
Opinions expressed by DZone contributors are their own.
Comments