Disclaimer: I'm new to programming and ruby.

I've used REXML to write both tree and stream parsers for simple xml
files but I can't seem to return values for the xml below in either
case:

<HIT NO="1" RANK="15335" SITEID="0" MOREHITS="0" FCOCOUNT="0">
   <FIELD NAME="title">Sample Text</FIELD>
</HIT>

In this example I'd like to return the value (Sample Text)for the <FIELD
NAME="title"> tag? So my question is how do I specify this attribute to
either a tree or stream parser?

Any help would be appreciated.

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