Skip to content

How can PHP be used to parse XML?

I’m wanting to use PHP to parse some XML from weather.com and then display it in the browser. After parsing the XML, I am going to load it into Flash.

The only part that I really need help with is the XML and PHP. If you do know how to then put it into Flash, that would be great too!

2 Comments

  1. Tamayi M wrote:

    Look at these links which do exactly what you want and provide source code:

    PHP | Weather.com XML Parser, 1.4 http://53×11.com/?article=5

    Ivis Weather PRO http://www.ivis.ro/products/ivis-weather-pro.html

    XML under PHP is a pain I think. However, to parse XML from PHP do this:

    http://www.zend.com/zend/art/parsing.php
    http://phpxmlclasses.sourceforge.net/
    http://keithdevens.com/software/phpxml

    This one is in ASP (which is in some respects similar to PHP) and it throughly explains how you can get data from weather.com and display in a Flash weather badge, very nice example:

    http://www.ericd.net/weather_tutorial/default.asp

    Wednesday, February 17, 2010 at 1:23 am | Permalink
  2. Elwood Wear wrote:

    I will immediately snatch your rss as I can not to find your email subscription link or newsletter service. Do you’ve any? Kindly permit me recognize so that I may subscribe. Thanks.

    Friday, November 11, 2011 at 9:53 am | Permalink

Post a Comment

Your email is never published nor shared.