Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Saving A Nokogiri XML Document

DZone's Guide to

Saving A Nokogiri XML Document

·
Free Resource

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}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}