You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Mark Studenka <ma...@synergy.transbay.net> on 2004/11/09 22:50:19 UTC

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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org