|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XML socket server applications
> Is it more usual to: > > (i) Precede each XML document with a MIME header, > including a Content-Length header (which might > be mandatory for the purposes of the application), OR > (ii) Just send "pure" XML documents with no preceding > headers, OR > (iii) Do something else There is no usual way. I prefer to signal end of document with a form-feed character. Double form-feed could be used to signal end of a document sequence. I recommend that you separate input from parsing because XML parser implementations frequently assume a stream contains only a single document. Just read until form-feed, push the result into parser queue, move on to next document. When you receive an empty document, close connection. Best, Don Park Docuverse
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








