[jdev] Splitting the stream
Norman Rasmussen
norman at rasmussen.co.za
Wed Nov 1 07:38:22 CST 2006
On 11/1/06, Michal 'vorner' Vaner <michal.vaner at kdemail.net> wrote:
> Do you think, if I have the XML stream (incoming one) and I want to
> split it, is it enough to count starting and ending tags,
yes, this is the best way.
> or they could
> be embedded in something like attribute? (eg. is <tag attr='<tag>'/> a
> legal thing or not?).
it's is ilegal xml.
> And, if I have these split things and insert them between the stream
> header I got in the beginning and an corresponding stream end, can I
> parse it using DOM parser for each separate stanza?
yes.
> <stream:stream xmlns=....>
> <message ...>
> .
> </message>
> </stream:stream>
>
> - can the thing depend or previous stanzas, or it depends only on the
> stream header? (with prefixes and so)
it only depends on the header, not previous stanzas.
I have to ask why you're implementing
yet-another-xmpp-parsing-library. Why not pick up on of the existing
ones and use that?
--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
More information about the JDev
mailing list