"Steven N. Hirsch" <[EMAIL PROTECTED]> writes: > On Thu, 11 Apr 2002, Fredrick Paul Eisele wrote: > > > I am using the SAX parser to pick out a particular element. > > Once I have the element (and its attributes) there is no > > reason to finish parsing the document. > > Presently, I am using die to throw an exception which > > terminates the parser. > > Although this technique works I don't like it. > > Does anyone know how to break out? > > I _think_ you can use parseFirst and parseNext until you've seen what you > need to. Just conjecture, since I've not used those functions myself.
Yup, you need to use progressive parsing. t/SAXParser.t has a short example of how to use it. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
