Libxml's XPath support + plain ol' Ruby = XQuery (kind of... ;-)
Jens Wille
gem "ruby-xquery", "~> 0.2.3"