Perl XML::Parser failing tests

Dave Wombat <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
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'>
]]>

error in processing external entity reference at line 21, column 3, byte 3161:
   <!ELEMENT bar ANY>
   <!ATTLIST bar big CDATA 'This is a large string value to test
whether the declaration parser still works when the entity or
attribute default value may be broken into multiple calls to the
default handler.
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789012345678901234567890123456789
'>
  ]>
==^
<foo/>
 at /root/.cpan/build/XML-Parser-2.36/blib/lib/XML/Parser.pm line 187

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".

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?

Or can I safely ignore the errors, and just force install XML::Parser?
_______________________________________________
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.