[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jabber-jdev
Subject:    Re: [jdev] parsing xml (xmpp) with ruby
From:       "Michal 'vorner' Vaner" <vorner () ucw ! cz>
Date:       2008-10-01 12:21:11
Message-ID: 20081001122111.GA1454 () tarantula ! kolej ! mff ! cuni ! cz
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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@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

[Attachment #5 (application/pgp-signature)]

_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe@jabber.org
_______________________________________________


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic