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
|