Hello On Mon, Nov 05, 2007 at 04:21:21PM +0100, Tomasz Sterna wrote: > 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. > > > > Sax. > > So you can use out-of-the-box parser, or you cannot? > Please make up your mind. ;-)
Now I can use SAX. If I had to care about the blobs, I couldn't, or I couldn't in an easy way. > > > 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. So you start splitting the data with one more run trough them? That is nasty and slow. -- I left the ssh key under the doormat Michal 'vorner' Vaner
pgpNdHkXV7UlP.pgp
Description: PGP signature
