Le Wed, 14 Oct 2009 17:58:30 +0200, Bernd Fondermann <[email protected]> a écrit :
> On Wed, Oct 14, 2009 at 16:25, Fernando Padilla <[email protected]> > wrote: > > Hi. I would love to have an IoFilter that would take in a stream > > and be able to spit out xml? (kind of like sax?) > > > > Does anyone have any leads for pre-built ones? Or should I dream > > about making one? :) > > That would be a nightmare then ;-) > Seriously, XML is very complex. Namespaces, entities, tree-like > structures. > > For Vysper, I tried to hook MINA into a streaming XML parser ("StAX"). > But the parsers I looked at were unable to re-parse partial HTML and > had issues as their buffers ran dry (stopped working). > Maybe I just didn't get it right and you will. > > In the end, for Vysper I wrote such a parser, but it's only parsing > the XMPP XML subset, not proper XML. > > Bernd Yep, I think something like protocol buffers or ASN.1/BER is much more efficient than XML. Julien
signature.asc
Description: PGP signature
