| | |
Extracting tag attributes
Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 6
Reputation:
Solved Threads: 0
I spent last 10 hours trying to figure out how to extract attributes from this:
RSS: http://weather.yahooapis.com/forecastrss?p=78620
doesn't work. And I tried everything else.
works fine
Just can't get any attribute values from tags with values instead of contents.
Please please help. Thanks.
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
<yweather:wind chill="76" direction="230" speed="8" />
RSS: http://weather.yahooapis.com/forecastrss?p=78620
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
rsstxt1 = response[0].getElementsByTagName("yweather:wind").item(0).attributes[0].value;
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
response[0].getElementsByTagName("ttl").item(0).textContent
Just can't get any attribute values from tags with values instead of contents.

Please please help. Thanks.
![]() |
Similar Threads
- How to insert swf files in a page? (ASP.NET)
- Problem with applying colors from form (JavaScript / DHTML / AJAX)
- a href and marker problems (HTML and CSS)
- XML Tranformations (XML, XSLT and XPATH)
- form submit redirect help, please (HTML and CSS)
- Green underlined words (DaniWeb Community Feedback)
- modify script (Perl)
- Need some help with parsing an XML file (PHP)
- rotate pictures in a mapped image space? (HTML and CSS)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: RSS feeds to PDF
- Next Thread: Convert soap reply result from string to different tyoe
| Thread Tools | Search this Thread |
.htaccess 301 accept access alltop api authentication binarysecuritytoken blog card collaboration credit data development ebay email evernote flash google government highrise htaccess intel internet legal live netbeans patent paypal php podcast proxy redirect rss rssfeeds searchmonkey server service soap software swappingxmlfromflash swappingxmlnodes url web webservices webservicesecurity wiki wikipedia xerces xml xslt y!os yahoo ydn





