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