From: William James Date: 2006-02-21T02:13:30+09:00 Subject: Re: How can I search value from xml Christian Neukirchen wrote: > "William James" writes: > > > class String > > def xtag(s) > > scan( %r! ( < #{s} [^>]* > ) ( .*? ) !mx ) > > end > > end > > > > gets(nil).xtag("biblioentry").each { |tag,data| > > if data.xtag("pubdate")[0][1] > "1984" > > print tag, data, "\n" > > end > > } > > I hope you are joking... I hope you're joking.