function validate()
{
// Xmllint params
$command = PB_XMLLINT_COMMAND . ' --html --valid --noout ' . escapeshellcmd($this->outputPath) . ' 2>&1';
// Execute command
$output = array();
$return_var = 0;
exec($command, $output, $return_var);
// Is this a valid XHTML?
if (count($output)) {
$this->logError(implode("\n", $output));
return false;
}
return true;
}