rec.xml

Peter Murray-Rust (peter@ursus.demon.co.uk)
Fri, 20 Feb 1998 09:54:15


Here is something bit me unexpectedly, and I'd be interested in comments on
it. I *think* I know the answer. I'll leave it to you to think about before
you rush for your parsers to check.

Using SAX (alone) to parse the XML version of the XML recommendation
(rec.xml), is it possible to create a well-formed version? The first time
I tried this the result surprised me.

P.

BTW there may be problems parsing rec.xml as the official version contains
a (single) character #160 ( ). This has actually been 'commented out'
but parsers such as AElfred don't accept it and throw an error. DavidM
assures me that this is the correct thing to do - I take this on trust. So,
if you wish to use AElfred on this you'll have to find the #160 (it appears
as a aacute; on my editor - yours may vary and even show a 'space'). This
has nothing to do with the little amusement above...

BTW I have asked if there is a file spec.dtd, and no doubt this will be
announced here if/when.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg