On 3/3/07 1:43 PM, "Chris Hostetter" <[EMAIL PROTECTED]> wrote:

> : Right now, Solr accesses the DOM as needed (at runtime) to fetch
> : information. There isn't much up-front checking beyond the XML
> : parser.
> 
> bingo, and adding more upfront checking is hard for at least two reasons i
> can think of...
> 
> 1) keeping a DTD up to date is a pain sa new features are added
> 2) the way some options are passed to plugable classes makes it impossible
> to validate (ie: tokenizers, caches, etc...)

I was thinking of translating the config file into internal config
properties when it was read, and logging Solr specific errors then.
Things like "I can't load this class" are pretty easy at that poin.

DTDs are inadequate and XML Schema is horrid, plus the error messages
from either would be not particularly useful.

wunder


Reply via email to