> >Does anyone else have experience with using XML in this fashion?
> >Thoughts?

Yeah, at my job this summer, we're using XML for just about everything,
including config files. It works OK, though our current code isn't as
smart as ht://Dig's in that it doesn't provide defaults and it doesn't
deal very well with empty attributes.

As you say, the format is pretty flexible and supports a lot of options.
There's also several popular programs using XML-like config files (Apache
springs to mind).

> I'd see the danger of code bloat by adding an XML parser, but maybe I am
> too conservative here... Is there a standard XML parser library available
> that htdig could use?

I doubt we'd have to add a full XML parser. We were originally
thinking about adding things like Apache's <Directory></Directory>
directives.

e.g.

<URL http://www.htdig.org/>
server_wait_time: 10
</URL>
<URL http://dev.htdig.org/>
server_wait_time: 20
</URL>

This would also help with such things as "realms" for authentication.

A limited parser for these formats could be written in flex/bison. We
already have such a parser for the current format.

-Geoff

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to