[Standards] Binary data over XMPP
tomek at xiaoka.com
Mon Nov 5 15:21:21 UTC 2007
Dnia 05-11-2007, Pn o godzinie 15:59 +0100, Michal 'vorner' Vaner pisze:
> > Dnia 05-11-2007, Pn o godzinie 12:51 +0100, Michal 'vorner' Vaner pisze:
> > > You probably can not do that with any reasonably out-of-the-box XML
> > > parser.
> > You cannot use out-of-the-box XML parser anyway.
> > You need a one that parses and returns every <stream/> subelement
> > separately.
So you can use out-of-the-box parser, or you cannot?
Please make up your mind. ;-)
> > you stop feeding the data read from socket to parser, and fetch it
> > directly for routing.
> Unless you work like:
> Got something on network, read all or full buffer (lets say max 4kB),
> push it trough utf-8->internal strings and take the whole lot and feed
> it to the parser.
So you read until '>' is spotted, as Greg suggested.
/\_./o__ Tomasz Sterna
._.(_.)_ XMPP: smoku at xiaoka.com
More information about the Standards