Bernd Fondermann wrote:
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.
Actually, this very problem was the run I discussed with Bernd last spring during ApacheCon, as I was looking for a XML parsing supporting stops in the middle of a XML tag. We need some XML parser that support this kind of partial data, and can recover from it. Not simple ...

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to