- libxml_get_errors: documentation ( source)
- print_r: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$xml = simplexml_load_file('http://www.ilumet.com.br/ubs_area.kml');
if ($xml === false) {
echo "Failed loading XML: ";
foreach(libxml_get_errors() as $error) {
echo "<br>", $error->message;
}
} else {
print_r($xml);
}
?>