From: Luke Galea Date: 2005-01-21T15:21:45+09:00 Subject: Xpath like syntax Hi all, curious if there is a nice ruby way to express an xpath like navigation of an object graph.. ie: XPATH way: Countries/Provinces/Cities[ @name = "London" ] versus The only Ruby way I can think of: countries.collect{ |c| c.provinces.collect {|p| p.cities.select { |c2| c2#name == 'London' } } } Thanks in advance