how to filter XML

osmanx

New Member
I'm looking for filtering this xml enter link description hereThe best way to filter an xml it is :-to run all the xml and to affect value in variable-after that we rewrite this xml with this variableis there any other method?For this method i've used the dom like this:\[code\] $flux= new DOMDocument();if ($flux->load('http://xml.weather.com/weather/local/FRXX0076?unit=m&hbhf=6&ut=C')) {$loc=$flux->getElementsByTagName('t'); foreach($loc as $lo) echo $lo->firstChild->nodeValue . "<br />";}\[/code\]in this code i've tried to display \[code\]<t>\[/code\] but there are 2 balise \[code\]<t>\[/code\] in \[code\]<hour>\[/code\] , therefore i've two value of \[code\]<t>\[/code\] instead the first child of \[code\]<hour>\[/code\]
 
Back
Top