On 2/11/07, David Chisnall <[EMAIL PROTECTED]> wrote:
On 10 Feb 2007, at 19:56, Hubert Chan wrote:
> FWIW, it seems like iksemel is a fairly low-level library for
> parsing XML streams (as opposed to regular XML documents) and that
> also includes Jabber/XMPP stuff. It seems to allow you to add
> arbitrary stanzas to your XMPP messages. I haven't investigated it
> in detail, but if you haven't taken a look at it already, it may be
> worth a look. At least it should be able to help with the tedium
> of XML parsing. (Unfortunately, it seems like development has
> stalled on it.)
> http://iksemel.jabberstudio.org/
When I started writing the XMPP library, there wasn't any sensible
way of parsing XML streams from *step (Apple and GNUstep had
different XML parsers, but they both required complete documents
rather than streams, even in SAX mode), so I wrote my own. There is
a bug where it doesn't correctly record close tags so it sometimes
gets confused, but apart from that it seems to work.
Replacing it with iksemel would possibly make sense (the interface is
clean, so replacing it should be easy), since it would mean less code
for us to maintain if iksemel is still being bug-fixed upstream. I
avoided doing this from the outset for two reasons:
1) I wanted to minimise external dependencies. Currently, I depend
on POSIX, OpenSSL and OpenStep.
2) iksemel is LGPL and I wanted to keep the code all 3-clause BSDL.
By the way, C is a really, really bad language for doing XML
parsing. I wrote an XML parser that has all of the functionality of
the one I wrote for the XMPP stuff in a dozen lines of Erlang (and it
had fewer bugs and scaled better).
Solely for partial XML parsing, does this help ?
http://www.cs.queensu.ca/~thurston/ragel/
It mentions Mongrel and Hpricot use it for HTML parsing.
It is only used for generate codes, not a real dependency.
I am also interested in using it for XML parsing or more general parsing.
Yen-Ju
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev