William James wrote:
> class String
>   def xtag(s)
>     <snip>
>   end
> 
> gets(nil).xtag("biblioentry").each { |attr,data|
>   <snip>
> }

Please stop. To the OP, use rexml.

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