Re: implementation of libxml2 structured errors throws only last parsing error?

Hi Petr,

On 8-Jan-09, at 5:22 AM, Petr Pajas wrote:
> Silly bug really. The patch looks like this:
>
> Index: lib/XML/LibXML/Error.pm
> ===================================================================
> --- lib/XML/LibXML/Error.pm     (revision 762)
> +++ lib/XML/LibXML/Error.pm     (working copy)
> @@ -84,7 +84,7 @@
>
>     sub _callback_error {
>       #print "CALLBACK\n";
> -      my ($xE,$prev) = shift;
> +      my ($xE,$prev) = @_;
>       my $terr;
>       $terr=XML::LibXML::Error->new($xE);
>       unless ( defined $terr->{file} and length $terr->{file} ) {
>
> (the previous error passed in the second argument got lost)
>
> The same was fixed in the SVN, I'll try to wrap up other work to
> make a release of 1.70 soon.

Excellent! Thanks for such a quick fix. Will be monitoring CPAN for  
the release of 1.70, so that we can update our validator as soon as it  
is out.

Thanks a lot,
-- 
olivier 

Received on Friday, 9 January 2009 01:57:16 UTC