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: Q: XML Iterators
by Eric Bohlman other posts by this author
Jan 16 2002 1:43AM messages near this date
view in the new Beta List Site
Stripping UTF8 from variables. | [ANNOUNCE] XML::SAX::2Simple
1/14/02 9:30:48 PM, Adam Turoff <ziggy@[...].com>  wrote:

> 	while (defined ($result = $xmlp->next())) {
> 		## process the result object
> 		## could be a tree fragment, a la DOM or XML::Twig
> 		## could be some other type of data entirely
> 	}
> 
> Writing event-based parsing code for lo these many years, my gut
> feeling is that this isn't possible with XML::Parser or the SAX model
> as it stands today.

Take a look at XML::TokeParser and XML::TiePyx: I used XML::Parser's parse_start() and parse
_more() 
to implement pull parsers that don't have to parse the entire document before returning resu
lts.


_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml

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