Extend existing XML by Nokogiri
===

I'm trying to extend existing XML and add new node. Load XML with lot of products, add new one and save it.

I'm using nokogiri and ruby 1.9.3

This is the best what I created:

     builder = Nokogiri::XML::Builder.new {
        root{
          load_xml = Nokogiri::XML(IO.read("test.xml"))
          parent.add_child(load_xml.root)
          data { 
            name "Name"
          }
        }
      }
      
      file = File.open("test.xml",'w')
      file.puts builder.to_xml
      file.close

Thank you