[jdev] Help parsing incremental XML

Petr Ferschmann petr at ferschmann.cz
Mon Apr 19 15:45:18 CDT 2004


Hello,

and how you handle namespaces? 

I can easily send you this stream:

<s:stream xmlns:s="..." xmlns:client="jabber:client" ...>
  <client:iq ...>

Do you handle that?

> is right, but I made a workaround - simple XML preparser which splits
> input stream into chunks (like stream start or single, complete stanza)
> which are passed to the real (libxml2) XML parser for DOM-like tree
> generation. Such workaround can be used for any XML parser API which
> work on whole documents only.



-- 
                                  Petr "Fers" Ferschmann

 -=[  petr at ferschmann.cz  ]==[ http://petr.ferschmann.cz/ ]=-
-=[ Koukni na http://www.postcard.cz/ ]==[ +420 604/781 009 ]=-

GPG Fingerprint:
[83B0 6378 7A9D D993 035E  60BD FEEC F665 D2C8 1B9A]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je digit?ln? podepsan? ??st zpr?vy
URL: <https://www.jabber.org/jdev/attachments/20040419/0947e122/attachment-0002.pgp>


More information about the JDev mailing list