Real Initial commit

This commit is contained in:
Arngren
2020-09-29 14:55:17 +02:00
parent 7eeaba7b7b
commit 4843e664b1
5 changed files with 369 additions and 0 deletions

15
xmlToJson.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
libxml_use_internal_errors(TRUE);
$objXmlDocument = simplexml_load_file("ttime-res/Resultater.xml");
if ($objXmlDocument === FALSE) {
foreach(libxml_get_errors() as $error) {
//error
}
exit;
}
$objJsonDocument = json_encode($objXmlDocument);
$arrOutput = json_decode($objJsonDocument, TRUE);
echo $objJsonDocument;
?>