From: Andy Watts Date: 2008-05-15T05:00:47+09:00 Subject: REXML XPath bug? I'm having trouble with a particular XPATH in REXML and would greatly appreciate any help. Given this simple document..
xxx
yyy
The xpath "//div[@class='summary']/following-sibling::div/span" is failing to return 'yyy'. Here's a console dump that also shows a simplier xpath working. >> REXML::XPath.match(doc, "//div[@class='summary']/following-sibling::div/span").to_s => "" >> REXML::XPath.match(doc, "//div[@class='summary']/following-sibling::div").to_s => "
\nyyy\n
" >> puts doc.to_s
xxx
yyy
The xpath works fine in firefox's xpath checker, so it seems like an issue with rexml. Any help greatly appreciated. - Andy -- Posted via http://www.ruby-forum.com/.