Martijn Faassen wrote:
> Dirk Meyer wrote:
>> I have a question about that one. I'm writing an XMPP module for kaa
>> and I'm looking for a good XML lib. The problem: I get the strings
>> From a socket and they may not be complete. iterparse can work with
>> that. BUT the tree will NEVER be complete, the last closing element
>> </stream> will be at the end of the conversation. That is why I use
>> SAX, but maybe lxml could also be handy.
>
> Unfortunately I don't know the answer to that one - I haven't used 
> iterparse enough to know it. You may want to ask on the lxml or 
> ElementTree mailing lists to see whether that is a problem.

Since the data comes from a TCP connection, the real bottleneck here
would be the socket. SAX is fast enough for me and I do not want to
rewrite my code. :) Thanks anyway.


Dischi

-- 
The sum of society's intelligence is less than the average of it's
individual parts.

Attachment: pgp58YEztc5AC.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to