#!/usr/bin/env php loadXmlFromString($data); if (!$load_ok) { echo 'Could not load ' . $filename . '!' . PHP_EOL; continue; } if (!$xp->validateGOTU()) { echo 'XML not valid in ' . $filename . '!' . PHP_EOL; continue; } echo 'Processing ' . $filename . PHP_EOL; $g = GotuObject::fromXmlParser($xp); //print_r($g); if ($g->tv) { $sqlw->addGotu($g, $file_date); } }