<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: Streaming XML (Was RE: XML Information Set Requirements, W3C         Note 18-February-1999)</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">How about defining a streaming or cursor DTD </FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Example instance</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;cursor xmlns=&quot;somecursornamespace ...&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;rowset xmls:ns=&quot;yourrowsetnamespace&quot; ....&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;ns:ticker ...</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;ns:ticker..</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;ns:ticker ..</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">...</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;ns:ticker ...</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rowset&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;continue&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;link xml:link=&quot;simple&quot; name=&quot;more&quot; href=&quot;someURItogetthenexttickers&quot;/&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;/continue&gt;</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&lt;/cursor&gt;</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I</FONT>
</P>

<P><FONT SIZE=1 FACE="Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">From:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">Matthew Sergeant (EML) [SMTP:Matthew.Sergeant@eml.ericsson.se]</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Sent:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">Tuesday, February 23, 1999 10:47 AM</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">'Mark Birbeck'; XML Dev</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">RE: Streaming XML (Was RE: XML Information Set Requirements, W3C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Note 18-February-1999)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; From: Mark Birbeck [SMTP:Mark.Birbeck@iedigital.net]</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; John Cowan wrote:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; Mark Birbeck wrote:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;&nbsp;&nbsp;&nbsp; &lt;stockPrice&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ticker&gt;MSFT&lt;/ticker&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;price&gt;1000&lt;/price&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;&nbsp;&nbsp;&nbsp; &lt;/stockPrice&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt; and then at the end of the day, sending:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt;&nbsp;&nbsp;&nbsp; &lt;/stockPrices&gt;</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; &gt; No-one so far in the discussion has argued that this is good XML -</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; I so argue.&nbsp; It is well-formed, though not valid, XML.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; It's NOT well-formed until the end of the day, when you receive the</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; closing tag. Until that time 'stockPrices' is not a complete element,</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; and therefore not a complete XML document.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; &gt; Validity inherently can't be checked until you've processed</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; everything.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; Nor can well-formedness.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">I don't want to argue this - just add a point.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">It really depends whether you're interested in proving the positive</FONT>
<BR><FONT SIZE=2 FACE="Arial">or the negative. If you're trying to prove that it is well formed you're</FONT>
<BR><FONT SIZE=2 FACE="Arial">SOOL until the end. But at least you can prove that it's not-not well formed</FONT>
<BR><FONT SIZE=2 FACE="Arial">so far in the stream... It's a compromise I guess.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Still - I agree with your general point. What would be better would</FONT>
<BR><FONT SIZE=2 FACE="Arial">be a stream of XML documents - like network packets - fully self contained.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Matt.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">xml-dev: A list for W3C XML Developers. To post,<U> </U></FONT><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><A HREF="mailto:xml-dev@ic.ac.uk">mailto:xml-dev@ic.ac.uk</A></FONT></U>
<BR><FONT SIZE=2 FACE="Arial">Archived as:</FONT><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><A HREF="http://www.lists.ic.ac.uk/hypermail/xml-dev/" TARGET="_blank">http://www.lists.ic.ac.uk/hypermail/xml-dev/</A></FONT></U><FONT SIZE=2 FACE="Arial"> and on CD-ROM/ISBN 981-02-3594-1</FONT>
<BR><FONT SIZE=2 FACE="Arial">To (un)subscribe,</FONT><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><A HREF="mailto:majordomo@ic.ac.uk">mailto:majordomo@ic.ac.uk</A></FONT></U><FONT SIZE=2 FACE="Arial"> the following message;</FONT>
<BR><FONT SIZE=2 FACE="Arial">(un)subscribe xml-dev</FONT>
<BR><FONT SIZE=2 FACE="Arial">To subscribe to the digests,</FONT><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><A HREF="mailto:majordomo@ic.ac.uk">mailto:majordomo@ic.ac.uk</A></FONT></U><FONT SIZE=2 FACE="Arial"> the following message;</FONT>
<BR><FONT SIZE=2 FACE="Arial">subscribe xml-dev-digest</FONT>
<BR><FONT SIZE=2 FACE="Arial">List coordinator, Henry Rzepa (</FONT><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial"><A HREF="mailto:rzepa@ic.ac.uk">mailto:rzepa@ic.ac.uk</A></FONT></U><FONT SIZE=2 FACE="Arial">)</FONT>
</P>

</BODY>
</HTML>