Lucky Nl wrote in post #1064450:
> actually i need to read xml file.you have taken as xmlstring.anyway it's
> not a problem.But the thing i want how to edit file

Well, after you've edited the XML node, you call the "write" method to 
transform the document tree to a string an write it to the file:

http://ruby-doc.org/stdlib-1.9.3/libdoc/rexml/rdoc/REXML/Document.html#method-i-write

-- 
Posted via http://www.ruby-forum.com/.