View Single Post
  #5 (permalink)  
Old 06-19-09, 07:26 PM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 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