You are missing the </stream:stream> end tag, or did you just omit to
show it?

-----Original Message-----
From: Mark Studenka [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 09, 2004 1:50 PM
To: [EMAIL PROTECTED]
Subject: Parser issue


I'm having a small issue that I'm having some problems debugging.

I'm getting an exception: "XML document structures must start and end 
within the same entity"

I'm trying to implement a jabber server.  So I'm parsing off an incoming
socket connection and can't actually see the data as it comes in from
the
client.  The issue I have is that I'm testing with multiple clients and
most of them seem to work just fine except for one.  When I connect to a
test server and dump the raw xml so I can see it everything looks just
normal.  I'm guessing there may be some kind of encoding issue that I
just
can't tell when I dump the xml to see it, but is causing an issue when
I parse it off the connection.  This particular client is using the Qt
libs to generate the xml, so I figure it's pretty clean.

So I guess what I'm trying to say is, any ideas on what could be causing
the exception?

The xml I'm expecting is:
<?xml version="1.0"?>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams";
xmlns="jabber:client" to="localhost">
<iq type="get" id="auth_1" to="localhost">
<query xmlns="jabber:iq:auth">
<username>user</username>
</query>
</iq>

The exception gets thrown at the "<" at the start of the iq tag.

Thanks for any insight you might be able to provide.  I realize this may
sound fairly vague, but I just can't seem to figure out what might be
going wrong.  I can provide any info that might help.

-markrs



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to