On Thu, Aug 28, 2008 at 11:40:33PM +0900, Mark wrote:
> I'm trying to parse an XML document (a google calendar feed), but I
> have problems when I try to get attributes of a tag with a namespace
> (ie: a colon).
> 
> Here's my code for this: date =
> entry.at('gd:when').attributes['startTime']

Your query is good.  I think it must be something else.

  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