Hi
   How can I make my parser report all errors in a document while 
parsing it?
I did something like
my $p = XML::Xerces::DOMParser->new();
$p->setDoNamespaces(1);
......
......
$p->setExitOnFirstFatalError(0);

validation is off.

eval
{
  $p->parse(XML::Xerces::LocalFileInputSource->new("$file"));
};

if($@)
{
  open(MYFILE, ">>./errors") or die "$!";
   print  MYFILE $@ ;
  close MYFILE;
}

But, MYFILE file contains only the first error parser encounters. 
how can I retrieve all errors?

thanks for help
grk



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to