ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Yet another parser
by Dominic Mitchell other posts by this author
Jan 19 2004 3:36PM messages near this date
view in the new Beta List Site
Re: LibXML: How do I serialize an attribute like this Attr="{" to file | Re: Yet another parser
Sam Tregar <sam@[...].com>  wrote:
>  On Thu, 15 Jan 2004, Petr Cimprich wrote:
> 
> > Some time ago, Matt Sergeant has uploaded an XS implementation of Expat
> > based SAX parser to CPAN. Still available in his directory as
> > XML-SAX-Expat-XS-Beta-0.90_01.tar.gz. The parser hasn't been complete
> > yet but it has already demonstrated it's considerably faster than
> > existing PerlSAX2 parsers.
> 
>  Awesome!  Thank you for taking on this important project.

Absolutely!  This is great news!

>  I have a question for you: will this SAX parser implement the
>  document-locator interface (set_document_locator() and
>  get_document_locator())?  Currently only XML::SAX::PurePerl implements
>  this interface.  Without it XML::Validator::Schema can't produce line
>  numbers for schema violations, which is a major usability problem.  I
>  tried to add document-locator support to XML::SAX::Expat, but ran into
>  some very frusterating seg-fault bugs and eventually gave up.

One other minor featurette that would be nice: Can we have proper
XML::SAX::Exceptions thrown on error?  I seem to recall that plain
XML::SAX::Expat doesn't use them, just plain die(), which made it
difficult to isolate parse errors in a large system.

Thanks,
-Dom

-- 
| Semantico: creators of major online resources          |
|       URL: http://www.semantico.com/                   |
|       Tel: +44 (1273) 722222 / Fax: +44 (1273) 723232  |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Dominic Mitchell
Petr Cimprich

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved