[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Streaming XML
Matthew Sergeant (EML) writes: > Still - I agree with your general point. What would be better would > be a stream of XML documents - like network packets - fully self > contained. Such a stream could be brain-dead, bonehead simple to construct -- for example, formfeed (^L) is not allowed in XML documents, so you could have a UDP stream consisting of a bunch of self-identifying XML snippits separated by ^L -- to resync, the client just has to wait for the ^L and then start reading (my example uses the two characters "^L" rather than an actual formfeed to avoid screwing up mail readers): ^L <alert xmlns="http://www.investor.com/ns/"> <date>19990223T104900-0500</date> <company> <exchange>NASDAQ</exchange> <ticker>MSFT</ticker> <name>Microsoft</name> </company> <change>+3.5</change> </alert> ^L <alert xmlns="http://www.investor.com/ns/"> <date>19990223T104901-0500</date> <company> <exchange>NASDAQ</exchange> <ticker>AMZN</ticker> <name>Amazon</name> </company> <change>+7</change> </alert> ^L <alert xmlns="http://www.investor.com/ns/"> <date>19990223T104903-0500</date> <company> <exchange>NASDAQ</exchange> <ticker>YHOO</ticker> <name>Yahoo</name> </company> <change>+7.25</change> </alert> ^L All the best, David -- David Megginson david@m... http://www.megginson.com/ xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
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
|