Re: Configuration files

Michael Kay (M.H.Kay@eng.icl.co.uk)
Fri, 26 Jun 1998 18:01:29 +0100


>It would be extremely useful if we could agree some
conventions. Thus I'd
>like to write:
><PARSER NAME="AElfred">com.microstar.xml.SAXDriver</PARSER>
><PARSER NAME="XP">com.jclark.xml.sax.Driver</PARSER>

While holding the configuration file in XML has some
self-referential elegance, I'm not sure how we solve the
bootstrapping problem of parsing an XML file in order to
discover what parser to use!

Better here, I think, to use the simple keyword=value format
defined by java:

parser.AElfred=com.microstar.xml.SAXDriver
parser.xp=com.jclark.xml.sax.Driver
preferred.parser=xp

Mike