Re: Perl XML::Parser failing tests

Michael Ludwig <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <20100317223755.GC620@wladimir>
Dave Wombat schrieb am 17.03.2010 um 11:59:58 (-0700):
> While trying to install Perl's XML::Parser version 2.36 downloaded
> from CPAN, the make test is failing.
> 
> This is a CentOS 5.4 system with an expat RPM installed.  The version
> on that is 1.95.8-8.3.
> 
> The first test that fails is
> 
> t/decl............
> syntax error at line 14, column 3, byte 214:
> %ext;
> 
> <![%bar;[
> ==^
> <!ATTLIST bar xyz (a|b|c) 'b'>
> ]]>

Looks like a problem with parameter entities or conditional sections.

> A similar problem was posted on this list, but the reply was of the
> form, "yep, your parser is broken and can't handle conditionals".

Sounds familiar :-)

> Trying to move past that, is there a newer version of expat that
> addresses this?  The README for XML::Parser claims 1.95.0 or newer
> should work.  Or is there a newer version of XML::Parser that corrects
> this?

The test suite runs fine for my installation, which is 2.36 for the Perl
module against libexpat 2.0.1 on Cygwin.

You might consider upgrading libexpat.

Or reporting a bug:

https://rt.cpan.org/Public/Dist/Display.html?Name=XML-Parser

> Or can I safely ignore the errors, and just force install XML::Parser?

It's not totally safe, in my opinion, but if you can determine that only
parameter entities and/or conditional sections are a problem and you
know that you don't use these, then well, why not?

-- 
Michael Ludwig
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.