2018-11-10 15:22:45 +00:00
|
|
|
<?php
|
2018-11-10 18:09:33 +00:00
|
|
|
require 'world_data_parser.php';
|
|
|
|
|
|
|
|
$parser = new WorldDataParser();
|
|
|
|
|
|
|
|
$path = 'resources/world_data_v1.csv';
|
|
|
|
|
|
|
|
$data = $parser->parseCSV($path);
|
|
|
|
|
|
|
|
$save = $parser->saveXML($data);
|
|
|
|
|
|
|
|
|
|
|
|
if ($save) {
|
|
|
|
echo "Erfolg";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "Leider nicht erfolgreich";
|
|
|
|
}
|