--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
All your examples showed tags being passed via a callback... Do you mean you need a parser that doesn't send you the next tag until you ask for it?
Unless you're working with very large XML documents, you can achieve that easily enough by buffering the start-tag events in a queue and processing the queue sequentially. And if you are working with large documents, you can just pause/resume the input stream you're reading the XML from. No need for pause/resume support in the parser on top of that.
--
Laurie Harper
http://laurie.holoweb.net/
--