Hi,
There is this link -> http://data.giub.uni-bonn.de/openrouteservice/php/DetermineRoute_rajan.php?Start=7.0892567,50.7265543&Via=&End=7.0986258,50.7323634&lang=en&distunit=YD&routepref=Fastest&avoidAreas=&useTMC=false&noMotorways=false&noTollways=false&instructions=true !
where I need to extract text, perhaps ->
<xls:Instruction>Drive half left on Kaiserstraße</xls:Instruction>
<xls:distance value="284" uom="YD"/> (bold text).
On using something like this :
$url="url_just_shown_above";
$output = file_get_contents($url);
$xml = simplexml_load_string($output);
echo $xml->xls:RouteInstruction->xls:Instruction."<br />";
I am getting error ->
Parse error: syntax error, unexpected ':', expecting ',' or ';' in C:\Program Files\ms4w\Apache\htdocs\ors\try.php on line 9
Please guide,so that I can extract Routing information and within xls:Instruction and distance with attribute value="284" throughout whole xml file.
Any kind of help will be deeply appreciated. Thanks a lot !!