This project has moved. For the latest updates, please go here.

Accessing element attributes

Topics: Developer Forum, User Forum
May 1, 2007 at 10:11 PM
I was wondering how the attributes of an element are accessed. For example, the rss feed I am using has a structure similar to:

<channel>
<title>Sweet Rss Feed</title>
<link>http://www.website.com</link>
<description>This feed gives you some cool info</description>
<language>en-us</language>
<lastBuildDate>Tue, 29 Nov 2005 3:56 pm PST</lastBuildDate>
<ttl>60</ttl>
<weather:location city="Anytown" region="MO" country="US"></weather:location>
<weather:units temperature="F" distance="mi" pressure="in" speed="mph"></weather:units>
....

How would I go about accessing the "city" attribute of <weather:location>? I have looked into trying DataSource.Channel.Attribute, but I can't seem to figure out exactly what I need to do.

Thanks,
Tim