From: "Mithun P." Date: 2011-11-25T19:39:56+09:00 Subject: Re: check if a element with a specific value exists in a xml using REXML hi robert..thx for guiding me .. i found a way out in rexml though...wntd 2 share with you.. foundnode = "no" xmldoc.elements.each("course/file"){ |element| nod = "content/t1/st_4/page2.swf" if element.text == nod foundnode = "yes" else foundnode = "no" end } -- Posted via http://www.ruby-forum.com/.