maplax 0 Newbie Poster

I spent last 10 hours trying to figure out how to extract attributes from this:

<yweather:wind chill="76"   direction="230"   speed="8" />

RSS: http://weather.yahooapis.com/forecastrss?p=78620

rsstxt1 = response[0].getElementsByTagName("yweather:wind").item(0).attributes[0].value;

doesn't work. And I tried everything else.

response[0].getElementsByTagName("ttl").item(0).textContent

works fine

Just can't get any attribute values from tags with values instead of contents. :(

Please please help. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.