2020-09-29 12:55:17 +00:00
|
|
|
<?php
|
|
|
|
libxml_use_internal_errors(TRUE);
|
2020-10-10 13:27:48 +00:00
|
|
|
$objXmlDocument = simplexml_load_file("resultater/Resultater.xml");
|
2020-09-29 12:55:17 +00:00
|
|
|
|
|
|
|
if ($objXmlDocument === FALSE) {
|
|
|
|
foreach(libxml_get_errors() as $error) {
|
|
|
|
//error
|
|
|
|
}
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
$objJsonDocument = json_encode($objXmlDocument);
|
|
|
|
$arrOutput = json_decode($objJsonDocument, TRUE);
|
|
|
|
|
|
|
|
echo $objJsonDocument;
|
2020-10-10 13:27:48 +00:00
|
|
|
?>
|