Forum Moderators: open

Message Too Old, No Replies

Using Yahoo weather feed (XML file)

pull specific info from the XML output?

         

Br3nn4n

9:07 pm on Mar 3, 2008 (gmt 0)

10+ Year Member



Trying to use this-- [developer.yahoo.com...] to display weather on my site. I only want to show the image and the temperature.

How do I pull the info from the XML file? And moreso, how is it integrated into a normal HTML webpage?

Thanks

cmarshall

9:20 pm on Mar 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are using PHP, then you have a few options:

DOMDocument [us3.php.net], SimpleXML [us3.php.net] and XSLT [us3.php.net].

You can also parse the XML directly in JavaScript [quirksmode.org].

With any one of these, you can choose whatever you want, and output it in a number of different formats (including HTML or direct DOM construction)