Another scenario if you think your XML is formatted correctly:
I think you may be transmitting an additional character(s) at the end of
your first message. The server will interpret those additional cahracter(s)
as the beginning of
your second message (i.e.).
Sent: ch<iq type="get"id="1"><query xmlns="jabber:iq:auth">
<username>usci_jabber</username></query></iq>
Try decrementing your transmit message length by 1 and see what happens.
-----Original Message-----
From: Amarnath Yara [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: [JDEV] Invalid XML error
Hi all, I am trying to develop a simple jabber client. Once I connect to
jabber.org and open the stream element I get the response with a session ID.
But after that whether if I try to authenticate I get an Invalid XML error
as follows. I have an account on the server created using other standard
jabber clients. Could any tell me why this error is occuring. Thanks in
advance.
Amar.
Sent: <?xml version="1.0" encoding="UTF-8" ?>
<stream:stream to="jabber.org" xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams">
Received: <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' id='3B5317D5'
xmlns='jabber:client' from='jabber.org'>
Sent: <iq type="get"id="1"><queryxmlns="jabber:i
q:auth"><username>usci_jabber</username></query></iq>
Received: <stream:error>Invalid XML</stream:error>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev