OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Push and Pull?

[ Lists Home | Date Index | Thread Index ]

> -----Original Message-----
> From: Jeff Lowery [mailto:jlowery@scenicsoft.com] 
> Sent: Friday, January 25, 2002 3:50 PM
> To: 'Sterin, Ilya'
> Cc: 'Dare Obasanjo '; xml-dev@lists.xml.org
> Subject: RE: [xml-dev] Push and Pull?
> 
> 
> > But in practice the pull parser still iterates through each 
> branch in 
> > the parser, but might only return certain parts.
> 
> Actually, that's not an assumption I would make. At the point 
> the start-tag of an element is encountered and the parser is 
> directed to skip it, I believe all the parser essentially has 
> to do is pattern match the text for
> start- and end-tags of same-named elements. When the end-tag 
> count matches the start-tag count, you start generating 
> events once more. 
> 
> There's no parsing going on of the skipped content, so it's 
> not iteration. It's grepping.


That totally makes sense.  Agree.  Although I wonder how many parser out
there are not actually patern matching or regexp using, but rather
implement their own iteration through each element while doing depth
state management, but do recurse through the whole doc?

Ilya





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS