views:

437

answers:

1
A: 

I suspect that you are having problems due to skipping out on the namespaces in your find. If you look at the xpath documentation for libxml-ruby, they have some pretty relevant examples. Specifically, your find should probably be like entries = doc.find('//atom:entry', 'atom:http://www.w3.org/2005/Atom') as that is properly formatted.

Rob Di Marco