Re: Perl XML::Parser failing tests
Robin Berjon <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Mar 22, 2010, at 23:39 , Jenda Krynicky wrote: > 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." I think that that's a documentation bug... It's possible that it might not expose everything that libxml2 does but it's stable. At least, I've used it in production and haven't seen it keel over. > 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. The point with SAX is that you don't need to have the one golden parser. That being said, if you want something reliable and reasonably fast (keeping in mind that SAX isn't the fastest option — pull APIs will get you better speed) XML::LibXML::SAX and XML::SAX::ExpatXS will work just fine. > 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, ... Hmmm, I thought Michel had updated Twig not to require XML::Parser anymore but it seems that I was wrong. Michel: is there anything specific that you get only from XML::Parser that you need? I must say I'm surprised something newer like XML::Rules is using the old interface! > SAX itself has a plethora of modules, not based on a SAX parser, but > actually being a SAX parser which confuses the issue. I'm sorry, I'm not sure what you mean here :) > 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. My bet is that for the most part people are using XML::LibXML (but not the SAX bits). -- Robin Berjon - http://berjon.com/ _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs