Mittwoch, 16. November 2011

How to use Nokogiri with XML namespace in Ruby

I recently wanted to fetch some data published by the ECB in XML format. Ruby + Nokogiri were very handy doing it. The tricky thing was to include the namespace in the XPath query.