OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Streaming XML

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: XML Dev <xml-dev@ic.ac.uk>
  • Date: Tue, 23 Feb 1999 10:50:25 -0500 (EST)

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@megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS