Change
$xp->parsefile($xml_file); local $XML::Checker::FAIL = \&my_fail;
to
local $XML::Checker::FAIL = \&my_fail; $xp->parsefile($xml_file);
It does no good to set the error handler after the checking is done.
In reply to Re: XML validating (no DTD)
by ikegami
in thread XML validating (no DTD)
by 2ge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |