Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Norman Rasmussen
On 11/1/06, Matthias Wimmer <[EMAIL PROTECTED]> wrote: As Alexander already said: I think what you plan to do (you wrote in a private mail, that you plan to use regular expressions) is parsing as well. Yegh, try and steer clear of RegEx to parse XML. Use a standard SAX parser should be more th

Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Matthias Wimmer
Michal 'vorner' Vaner schrieb: > Well, I just think I do not need to _parse_ it if I'm not interested in > the information there. I only want to split it to parts and feed that to > different program. As Alexander already said: I think what you plan to do (you wrote in a private mail, that you pla

[jdev] Re: Splitting the stream

2006-11-01 Thread Alexander Gnauck
Michal 'vorner' Vaner wrote: Well, I just think I do not need to _parse_ it if I'm not interested in the information there. I only want to split it to parts and feed that to different program. what is parsing for you? splitting is parsing for me. A SAX or Pull Parser, or a Xml Tokenizer is spl

Re: [jdev] Re: Splitting the stream

2006-11-01 Thread Michal 'vorner' Vaner
Hello, On Wed, Nov 01, 2006 at 06:12:15PM +0100, Alexander Gnauck wrote: > Matthias Wimmer wrote: > >Michal 'vorner' Vaner schrieb: > >>And, if I have these split things and insert them between the stream > >>header I got in the beginning and an corresponding stream end, can I > >>parse it using D

[jdev] Re: Splitting the stream

2006-11-01 Thread Alexander Gnauck
Matthias Wimmer wrote: Michal 'vorner' Vaner schrieb: And, if I have these split things and insert them between the stream header I got in the beginning and an corresponding stream end, can I parse it using DOM parser for each separate stanza? But that is something I would not do. It requires