View Single Post
  #5 (permalink)  
Old 06-19-09, 07:26 PM
Jcbones Jcbones is offline
Coding Addict
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 280
Thanks: 3
Thanked 5 Times in 5 Posts
Well the namespace files finally started working.

PHP Code:
<?php

echo '<pre>';
$xml simplexml_load_file("$PUTthatHUGExmlFILEurlHERE");

foreach(
$xml->xpath('//xls:RouteInstruction/*') as $v)
    {
        print (isset(
$v[0][0]->attributes()->value)) ? $v[0][0]->attributes()->value ' Kilometers <br/>' $v[0][0] . '<br/>';
    }


echo 
'</pre>';


?>
See if you like it...

Last edited by Jcbones; 06-19-09 at 07:31 PM.
Reply With Quote