Re: Shortcutting a SAX parser

Michael Ludwig <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Robin Berjon schrieb:
> On Apr 8, 2009, at 11:14 , Michael Ludwig wrote:
>>> If it doesn't for you, someone must be catching and rethrowing the
>>> exception and stringifying it along the way.
>>
>> Yes, exactly.
>
> It would help to know who's doing that, and if it's inside the
> XML::SAX code (in which case I'm guessing it's a bug). Can you figure
> it out with Devel::StackTrace or by overriding die() to become
> confess()?

Here's the output of confess(), which yields no clues to me, but maybe
to you:

FERTIG at /home/milu/ds/chax.pl line 32
         MySAXHandler::start_element('MySAXHandler=HASH(0x8317f70)', 
'HASH(0x84d5e04)') called at /usr/share/perl5/XML/SAX/Base.pm line 264
         XML::SAX::Base::__ANON__('HASH(0x84d5e04)') called at 
/usr/share/perl5/XML/SAX/Base.pm line 238
 
XML::SAX::Base::start_element('XML::LibXML::SAX=HASH(0x8318198)', 
'HASH(0x84d5e04)') called at /usr/local/lib/perl/5.8.8/XML/LibXML.pm 
line 635
         eval {...} called at /usr/local/lib/perl/5.8.8/XML/LibXML.pm 
line 635
         eval {...} called at /usr/local/lib/perl/5.8.8/XML/LibXML.pm 
line 635
         XML::LibXML::parse_file('XML::LibXML=HASH(0x8420f58)', 
'/home/milu/dat/ds/2009_04_05_09_43-asv/2009_04_22_HIT24.xml') called at 
/usr/local/lib/perl/5.8.8/XML/LibXML/SAX.pm line 73
         eval {...} called at 
/usr/local/lib/perl/5.8.8/XML/LibXML/SAX.pm line 72
         XML::LibXML::SAX::_parse('XML::LibXML::SAX=HASH(0x8318198)') 
called at /usr/local/lib/perl/5.8.8/XML/LibXML/SAX.pm line 53
 
XML::LibXML::SAX::_parse_systemid('XML::LibXML::SAX=HASH(0x8318198)', 
'/home/milu/dat/ds/2009_04_05_09_43-asv/2009_04_22_HIT24.xml') called at 
/usr/share/perl5/XML/SAX/Base.pm line 2294
         XML::SAX::Base::parse('XML::LibXML::SAX=HASH(0x8318198)', 
'HASH(0x84c5f94)') called at /usr/share/perl5/XML/SAX/Base.pm line 2334
         XML::SAX::Base::parse_uri('XML::LibXML::SAX=HASH(0x8318198)', 
'/home/milu/dat/ds/2009_04_05_09_43-asv/2009_04_22_HIT24.xml') called at 
/home/milu/ds/chax.pl line 65 at 
/usr/local/lib/perl/5.8.8/XML/LibXML/SAX.pm line 73
  at /home/milu/ds/chax.pl line 65

The program is essentially the same as the one already posted.

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.