setName('Test name'); $kmlPlacemark->setDescription('Test description'); $kmlPlacemark->setXCoordinate(52.138476); $kmlPlacemark->setYCoordinate(4.463046); // Creating a KMLFile using our class, add our placemark and echo $kml = new KMLFile(); $kml->addPlacemark($kmlPlacemark); echo $kml->toString(); // Let's try to read the node status file $nodeStatus = new FileHandler($config['node_status_file']); $kmlFile = KMLFile::parseFile($nodeStatus); ?>