[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Push and Pull?
Jeff Lowery wrote: >>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. > Partially true, modulo CDATA - but if the parser is XML compliant it still needs to verify that the document is well formed, which means recognizing and handling nested elements, verifying attribute values, etc. In other words, parsing the document. ;-) - Dennis
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|