[jdev] parsing xml (xmpp) with ruby

Eric Will rakaur at malkier.net
Wed Oct 1 10:04:11 CDT 2008


On Wed, Oct 1, 2008 at 8:21 AM, Michal 'vorner' Vaner <vorner at ucw.cz> wrote:
> You can not use a new parser every time. You need it to know the
> beginning of the stream.

Why? It works fine without knowing it. How can I reuse the same parser
when the source changes?

That is, I have to do parser = REXML::Parsers::SAX2Parser.new(source)
every time, and feed it the source. Is there a way to feed an existing
SAX2Parser a new source?

> --
> Something is obviously wrong. The thing works.
>
> Michal 'vorner' Vaner

-- Eric Will // rakaur --



More information about the JDev mailing list