Hi Dean, It seems that what you are looking for is a pull parser not a push parser, is that right? You want to be able to control the parser and ask it the data you are looking for. If it is the case, I advise you to take a look at:
Xerces XNI http://xml.apache.org/xerces2-j/xni-config.html XPP http://www.extreme.indiana.edu/xgws/xsoap/xpp/ JSR 173 http://www.jcp.org/en/jsr/detail?id=173 To use those parsers with Castor you will unfortunately need some converters to SAX events since Castor currently only understands SAX. Arnaud > -----Original Message----- > From: Dean Hiller [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 06, 2002 8:58 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] recommend a parser if you can... > > thanks, but that is not really what I am looking for. My requirement > summed up is a Parser that instead of passing it an InputStream that it > reads from when it wants to, you write to the parser and it parses as > much of the data as it can and returns back to you. The parser would be > in a paused state until you write to it again. Right now all the > parsers read from an input stream until the stream is empty. > thanks if you think of something else, > Dean > > Lance Lavandowska wrote: > > > I'm not entirely sure I understand your requirements, but perhaps > > there is something here > > http://weblogs.flamefew.net/bayard/archives/000286.html > > that can help? > > > > Lance > > > > Dean Hiller wrote: > > > >> > >> We are using nio, so we need a truly oriented push SAX parser. Does > >> anyone know if a parser like this exists? I want to integrate one if > >> there is one with castor. > >> > >> For example, you would call Parser.write(char[]) many many times and the > >> Parser would start calling startElement/endElement as data was written. > >> The SAX would pause caching unprocessed data when write is not being > >> called such as an incompleted element(ie > > > > > > ----------------------------------------------------------- If you > > wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
