Streaming XML (Was RE: XML Information Set Requirements, W3C Note 18-February-1999)

Hutchison, Nigel nwoh at software-ag.de
Tue Feb 23 14:33:15 GMT 1999


How about defining a streaming or cursor DTD 

Example instance

<cursor xmlns="somecursornamespace ...>
	<rowset xmls:ns="yourrowsetnamespace" ....>
		<ns:ticker ...
		<ns:ticker..
		<ns:ticker ..
		...
		<ns:ticker ...
            </rowset>
	<continue>
		<link xml:link="simple" name="more"
href="someURItogetthenexttickers"/>
	</continue>
</cursor>

I

> -----Original Message-----
> From:	Matthew Sergeant (EML) [SMTP:Matthew.Sergeant at eml.ericsson.se]
> Sent:	Tuesday, February 23, 1999 10:47 AM
> To:	'Mark Birbeck'; XML Dev
> Subject:	RE: Streaming XML (Was RE: XML Information Set Requirements,
> W3C	 Note 18-February-1999)
> 
> > -----Original Message-----
> > From:	Mark Birbeck [SMTP:Mark.Birbeck at iedigital.net]
> > 
> > John Cowan wrote:
> > > Mark Birbeck wrote:
> > 
> > > >    <stockPrice>
> > > >        <ticker>MSFT</ticker>
> > > >        <price>1000</price>
> > > >    </stockPrice>
> > > >
> > > > and then at the end of the day, sending:
> > > >
> > > >    </stockPrices>
> > > > No-one so far in the discussion has argued that this is good XML -
> > > 
> > > I so argue.  It is well-formed, though not valid, XML.
> > 
> > It's NOT well-formed until the end of the day, when you receive the
> > closing tag. Until that time 'stockPrices' is not a complete element,
> > and therefore not a complete XML document.
> > 
> > > Validity inherently can't be checked until you've processed
> > everything.
> > 
> > Nor can well-formedness.
> > 
> 	I don't want to argue this - just add a point.
> 
> 	It really depends whether you're interested in proving the positive
> or the negative. If you're trying to prove that it is well formed you're
> SOOL until the end. But at least you can prove that it's not-not well
> formed
> so far in the stream... It's a compromise I guess.
> 
> 	Still - I agree with your general point. What would be better would
> be a stream of XML documents - like network packets - fully self
> contained.
> 
> 	Matt.
> 
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at 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 at ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo at ic.ac.uk the following
> message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990223/1e9d3bee/attachment.htm


More information about the Xml-dev mailing list