[
Lists Home |
Date Index |
Thread Index
]
- From: David Megginson <ak117@freenet.carleton.ca>
- To: "xml-dev Mailing List" <xml-dev@ic.ac.uk>
- Date: Tue, 3 Feb 1998 06:55:11 -0500
Michael Kay writes:
> 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
> it's
> not the parser's job to turn bytes into characters?)
That depends on the type of stream. I would not want to force the
client to do encoding conversion for a stream that happened to be open
to a local file or an HTTP connection.
> 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
> it)
>
> 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.
It should be possible to read from a string, but it would not be safe
to assume that the string contains no DTD or external entities -- it
would always be necessary to supply a base URI as well.
All the best,
David
--
David Megginson ak117@freenet.carleton.ca
Microstar Software Ltd. dmeggins@microstar.com
http://home.sprynet.com/sprynet/dmeggins/
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)
|