[JDEV] server2client

Thomas Charron tcharron at ductape.net
Mon Sep 20 12:20:35 CDT 1999


Quoting belg4mit at MIT.EDU:
> then how does the client distinguish between messages?
> (eg; there are several queued up)
> are we forcing the client to parse the xml as it reads so it knows when
> it's
> reached the end of the message? what if it over reads?

  Err, a message ends with a </message>.  ;-P  That means it's the end of the 
message..

  Yes, the client must parse as it goes.  This is what streaming XML means.. ;-P

  As far as 'overreading', I'm not sure what you mean.  Our entire transaction 
is one huge XML transaction, all falling under the parent tag <jabber>.  
Message tags are not XML documents themselves, but PART of the overall XML 
streamed document.  This forces the client to parse as it goes.  Any XML parser 
should see during 'overread' that the overread part is part of the next, as of 
yet unfinished tag..


Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used  >>
<< and stored in garage.  ?>>




More information about the JDev mailing list