[jdev] Question about expat as XML parser for Jabber client
aliban at gmx.net
aliban at gmx.net
Mon Dec 13 17:55:52 CST 2004
XMPP Client Daemon uses expat as xml parser.
Read the following file to see how i have done this:
http://cvs.sourceforge.net/viewcvs.py/wxxcd/wxXCD/xs/xs_streamreader.c
pp?rev=1.2&view=markup
for more information about XCD goto:
http://xcd.jabberstudio.org/
XCD is a jabber lib itself. I would appreciate if some pep. would use
it.
Ed
On 13 Dec 2004 at 21:56, Igor Urdenko wrote:
> Hello everybody
> I just have a problem using expat as XML parser for my Jabber
client
> project. I am using expat as follows: - receive a data buffer from
> socket; - parse it with expat; - processing parsed data; I do not
keep
> all previously received packets, I do not think I have to. The
problem
> comes when Jabber server sends closing tag </stream:stream> - when
I try
> to parse it with expat I have a message "Not well-formed (invalid
token)
> at line 1" that means expat looking for opening <stream:stream> tag
> which was received log before. If you have (or had) such a problem
how
> did you solve it? The only way comes to my mind is keeping all
received
> packets in some place and as it all one big document coming by
parts.
> But I do not understand completelt how I should implement this. Any
> comments or suggestion about my problem are welcome ASAP. Thank you
in
> advance Igor
>
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>
More information about the JDev
mailing list