Usage:
$validator = XML_DTD_XmlValidator; // This will check if the xml is well formed // and will validate it against its DTD if (!$validator->isValid($dtd_file, $xml_file)) { die($validator->getMessage()); }
[line 89]
string getMessage( )
Gets all the errors the validator found in the conformity of the xml document
bool isValid( string $dtd_file, string $xml_file)
Checks an XML file against its DTD