Re: XML::SAX::PurePerl - DTD parsing bug?
by Duncan Cameron other posts by this author
Feb 13 2002 4:37PM messages near this date
view in the new Beta List Site
Re: XML::SAX::PurePerl - DTD parsing bug?
|
Re: XML::SAX::PurePerl - DTD parsing bug?
On 2002-02-13 Aaron Straup Cope wrote:
> Hi,
>
> I am trying to write a parsing widget using XML::SAX::ParserFactory but I
> can't seem to get past the DTD parsing stage.
>
> The parser fails with the following error...
>
> 101 ->./test
> DEBUG: PUBID is '-//Aaron Straup Cope//DTD Eatdrinkfeelgood 1.0//EN//XML'
> DEBUG: PUBIDCHAR is '(?x-ism: [\x20\x0D\x0Aa-zA-Z0-9'()\+,./:=\?;!*\#@\$_%] )'
> Invalid characters in PUBLIC identifier [Ln: 2, Col: 88]
>
> This struck me as sort of odd since the DTD is...
>
> <?xml version = "1.0" ?>
> <!DOCTYPE eatdrinkfeelgood PUBLIC "-//Aaron Straup Cope//DTD Eatdrinkfeelgood 1.0//EN//XML"
> "http://www.aaronland.net/food/edfgml/1.0/eatdrinkfeelgood.dtd">
>
> ....which is currently being parsed without exception by AxKit. To my eyes,
> it is a prefectly good DTD according to...
>
> http://www.ucc.ie/cgi-bin/PUBLIC
>
> I spent a little bit of time walking through the code since it seemed like
> $pubid (DocType.pm, line 53) should not contain "-//Aaron Straup Cope//".
>
> I got as far as &XML::SAX::PurePerl::Reader::macth_re when, looking at a
> data dump, I felt like I'd gotten in over my head.
>
> Is this a bug or am I just missing something obvious? Thanks,
>
>
> XML::SAX::ParserFactory 1.00
> XML::SAX::PurePerl 0.90
>
These look to be old versions. PurePerl is now on 1.11 (at least)
# $Id: PurePerl.pm,v 1.11 2002/01/30 12:45:36 matt Exp $
Try upgrading.
Regards,
Duncan Cameron
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Duncan Cameron
Aaron Straup Cope
Robin Berjon
Aaron Straup Cope
|