git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1506
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
// convert XML to geojson (http://www.geojson.org/geojson-spec.html)
// Returns an array of features
// TODO: Error reporting
+// TODO: name of points gets not added to properties
function xml_to_json_features($input) {
libxml_use_internal_errors(true); // without that, we get PHP Warnings if the $input is not well-formed
$xml = new SimpleXMLElement($input); // input