[JDEV] Flash 5's XMLSocket vs Jabber 1.2

Thomas Charron tcharron at ductape.net
Thu Oct 19 09:32:09 CDT 2000


Quoting Bill Abbas <zsa at expertq.com>:
> I haven't looked at how jabber parses XML, but ...
> If the problem is the terminating null, is a switch really necessary?   
> Shouldn't the behavior of the jabber XML stream parser be to throw away 
> any extraneous garbage that occurs outside of tags?  So if I sent a data 
> like this:
> <tag>
>    meaningful stuff
> </tag>
> random garbage
> the random garbage would get discarded because it has no meaningful XML 
> context. 

  Discarding the random data would not be correct, IMHO.  The DTD for the 
initial tag does not include *ANY PCDATA* segments.  What do you do when 
something is outside the norm?  Get them the *HECK* outta there, aka, drop 
socket..  (Not, I didn't say drop core..  ;-P)

> Which is another way of saying that it shouldn't dump core, it should 
> just discard it and move on.

  Agreed.  But I'm sure the core dump issue will be addressed..  ;-P  No 
arguments there..

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




More information about the JDev mailing list