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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: SAX: Parser Interface -- Summary of Change Requests

[ Lists Home | Date Index | Thread Index ]
  • From: "Michael Kay" <M.H.Kay@eng.icl.co.uk>
  • Date: Tue, 3 Feb 1998 10:58:51 -0000

>Tyler Baker writes:
> [on reading XML from a stream rather than a URI]
> > Well, what if the XML data is streamed from a database where a URL
> > does not matter so much...

This suggests an analogy with CGI. A URL is not the name of a document, it
is a request for a stream of data, and what we need is a style of URL (or
extended URL) that allows the application to say "please send your requests
for data to me and I will supply a stream in response".

>This is a good point, but there are complications.  Do these vendors
>plan to use character streams or byte streams?
I don't know the Java technicalities, but surely what we mean by a stream
here is something that supplies a sequence of Unicode characters. (Surely
not the parser's job to turn bytes into characters?)

We should also ensure that the design makes certain special cases easy for
the application writer, e.g.:

a) the primary input source is a file in filestore. (Translating the
filename to a URL is error-prone and it would be better for the parser to do

b) there is only one input source (e.g. a record containing XML read from a
database, with no DTD or other external entities), probably available
already in the application as the contents of a String.

regards, Mike Kay

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/
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