Re: Perl XML::Parser failing tests

"Jenda Krynicky" <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
From: Robin Berjon <[email protected]>
> On Mar 17, 2010, at 19:59 , Dave Wombat wrote:
> > Or can I safely ignore the errors, and just force install XML::Parser?
> 
> Unless you work in very specific settings, there's a 99.9999% chance
> that you'll never ever see a conditional DTD inclusion used. If I had
> to, it's a chance I'd take, but it really is up to the type of
> document you'll be processing - do you have an idea what those are? 
> 
> Perhaps more helpful: why are you using XML::Parser? As best I know,
> there isn't much left on CPAN that depends on that, everything's moved
> on to either using SAX (through other parsers, including ExpatXS) or
> other processing methods offered by XML::LibXML (or sat on top of it).
> If you can avoid XML::Parser, do so. 

As best I know (I just looked) XML::LibXML::SAX still says:

"NOTE: At the moment XML::LibXML provides only an incomplete 
interface to libxml2's native SAX implementation. The current 
implementation is not tested in production environment. It may causes 
significant memory problems or shows wrong behaviour. If you run into 
specific problems using this part of XML::LibXML, let me know."

So what's actually the golden SAX parser we are supposed to install 
to solve all our problems? I looked into XML::SAX and a few more and 
did not find any pointers to available SAX parser. Though I have to 
admit I did not spend much time looking.


I also know that XML::Twig, which is a fairly popular module is still 
based on XML::Parser, XML::Rules still uses XML::Parser::Expat, 
XML::Simple can use both XML::Parser and some SAX2 parser, ...

SAX itself has a plethora of modules, not based on a SAX parser, but 
actually being a SAX parser which confuses the issue. 

Shame there is no statistics about the usage of modules, I would 
really like to know what actually is the usage of XML::Parser/expat 
versus SAX/(libxml or whatever). Though I do bet there will be a lot 
more new, single user, modules built on top of the newest and 
greatest SAX2.

Jenda
===== [email protected] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery

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