Question : php read xml from url
Answered by : cloudy-centipede
$xml=simplexml_load_file("filename.xml") or die("Error: Cannot create object");
echo $xml->detaildata->lattitude;
echo $xml->detaildata->longitude;
Source : | Last Update : Wed, 29 Apr 20
Question : php read xml from url
Answered by : slaff
$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
Source : | Last Update : Fri, 04 Sep 20