[jdev] parsing xml (xmpp) with ruby

Eric Will rakaur at malkier.net
Sat Sep 27 16:16:55 CDT 2008


On Sat, Sep 27, 2008 at 5:06 PM, Norman Rasmussen
<norman at rasmussen.co.za> wrote:
> If I ever had to write my own xmpp parser, I would use a SAX like parser to
> isolate the elements from the input stream, so I knew that they were well
> formed, and then I would put them into a fake XML document using the stream
> element.  i.e. use the stream stanza from the opening of the stream - that
> way you get the namespace declarations right for free and element.parent is
> 'valid'.

I was actually thinking very seriously of doing this.

-- rakaur



More information about the JDev mailing list