php read xml from url
snippet in php

php read xml from url

user1740

$xml=simplexml_load_file("filename.xml") or die("Error: Cannot create object");
echo $xml->detaildata->lattitude;
echo $xml->detaildata->longitude;

php read xml from url

user5663

$xml=simplexml_load_file("filename.xml") or die("Error: Cannot create object");
echo $xml->detaildata->lattitude; // As SimpleXMLElement Object
// ... OR ...
echo $xml->detaildata->lattitude->__toString(); // As String