From: Matthew Isleb Date: 2009-01-21T04:35:54+09:00 Subject: Re: Hpricot query _why wrote: > > require 'rubygems' > require 'open-uri' > require 'hpricot' > > url = > "http://www.google.com/calendar/feeds/developer-calendar@google.com/public/full" > xml = Hpricot.XML(open(url).read) > puts xml.at('gd:when').attributes['startTime'] > > _why Old thread brought to life... The .XML() method was the key for me to get namespaces. Although I did notice that it still doesn't quite work as expected. For example this works: xml.at('media:content') But not this: xml.search('media:content/media:category') What I ended up having to do to get the desire effect was: xml.at('media:content').search('media:category') Is this a bug? -- Posted via http://www.ruby-forum.com/.