From: Christian Neukirchen Date: 2006-02-21T01:50:44+09:00 Subject: Re: How can I search value from xml "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... -- Christian Neukirchen http://chneukirchen.org