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

Accessing element attributes

Topics: Developer Forum, User Forum
May 1, 2007 at 9: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:

<title>Sweet Rss Feed</title>
<description>This feed gives you some cool info</description>
<lastBuildDate>Tue, 29 Nov 2005 3:56 pm PST</lastBuildDate>
<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.