From: Anthony Pearson Date: 2008-08-28T23:47:39+09:00 Subject: Re: Hpricot query hpricot isn't quite friendly with namespaces from what I have tried before (unsure about the current version). Did you tried doing a full xpath query? @ On Thu, Aug 28, 2008 at 9:40 AM, Mark wrote: > Hi all, I have a question about Hpricot: > > 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'] > > Instead of having the expected time returned I just get 'nil'. > > Anyone know why this is? Or how to get it to work properly? > > Many thanks in advance, > > Mark > >