Re: [xml] How to find the End of the SOAP XML BODY



* Venkataragavan Vijayakumar wrote:
I am receiving the multiple xml bodies using a single TCP connection , how
to identity the End of a XML body.

There is no general solution to that problem. Usually there would be a
protocol layered on top of TCP that segments the stream, like HTTP has
individual messages. XML does not help you there either, if you have

  <x />
  <!---->
  <x />

and can for some reason assume that only well-formed content will come
over the connection then the second <x /> could be assumed to be part of
the second document, but you cannot tell which document the comment be-
longs to.
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]