M
Mark
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
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