[JDEV] Invalid XML error
Tom Guzik
TGuzik at jabber.com
Mon Jul 16 12:41:34 CDT 2001
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:amarny at hotmail.com]
Sent: Monday, July 16, 2001 10:54 AM
To: jdev at jabber.org
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
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list