XML validation capability added to SP

James Clark (jjc@jclark.com)
Thu, 10 Apr 1997 20:16:51 +0700


I spent the day adding XML validation support to SP. You can get an SP
snapshot that has this from ftp://ftp.jclark.com/pub/test/sp.zip. The
support takes the form of a -wxml option which will cause SP to give a
warning for the use of any SGML construct that is not allowed in XML.
Actually -wxml is short-hand for enabling 45 new warnings, each of which can
be enabled or disabled individually. I haven't yet documented these, but
you can read ParserApp.cxx to find a list.

There are a couple of things I know I don't yet detect:

- XML's additional restrictions on parameter entity references
- XML's requirements about quoting &, < and >
- XML's additional restrictions on the content of ignored marked sections

There are probably others I don't know about. If you find any, please
report them.

James