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 23:22:22 UTC

Re: Parser issue

Since I'm parsing off an incoming stream, there is no closing stream
tag yet.  The exception gets thrown much before the parser reaches the
end of the document.

-markrs

> You are missing the </stream:stream> end tag, or did you just omit to
> show it?
> 
> -----Original Message-----
> From: Mark Studenka [mailto:markrs@synergy.transbay.net] 
> Sent: Tuesday, November 09, 2004 1:50 PM
> To: xerces-j-user@xml.apache.org
> 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: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org