[jdev] parsing xml (xmpp) with ruby
Michal 'vorner' Vaner
vorner at ucw.cz
Wed Oct 1 07:21:11 CDT 2008
Hello
On Wed, Oct 01, 2008 at 07:50:26AM -0400, Eric Will wrote:
> On Tue, Sep 30, 2008 at 6:22 PM, Lucas Nussbaum
> <lucas at lucas-nussbaum.net> wrote:
> > We don't deal with it, REXML does it for us by not pushing incomplete
> > events to us through the SAX2Parser.
>
> I guess this is because you guys use it attached to a socket? I don't
> do that. I read from the socket and pass that value to a new parser
> every time. I use select, not threads. I don't like Ruby's threads.
You can not use a new parser every time. You need it to know the
beginning of the stream.
However, I do not have it attached directly to the socket, I read the
socket and feed the data into the parser manually.
Have a nice day
--
Something is obviously wrong. The thing works.
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20081001/76af01fc/attachment-0003.pgp>
More information about the JDev
mailing list