[XML-SIG] XML appropiate for config files of a xml processor?
Thu, 9 Nov 2000 04:43:01 -0800
Blarg. Don't use XML for config files (that are intended to be read / edited
by a human). Take a look at the ConfigParser module in the standard library.
On Thu, Nov 09, 2000 at 01:33:13PM +0100, Stephan Tolksdorf wrote:
> this a design question not directly related to Python.
> I'm writing a small homegrown xml processor which is mainly
> intended for transforming xml files to html.
> At the moment it is configurable by config files written in xml.
> But these config files are not easy to manually read or edit as you
> have to escape <,>,".
> For example a mapping for a xml-tag could look like
> <tag xml="example">
> The processor should now transform
> Obviously you have to use a special XML-Editor to edit these type of
> config files.
> So, would you say this is an acceptable drawback in comparison to the
> flexibility and ease of use of xml as the config file format?
> Or would you say one should use a custom format for these config files?
> Maybe you could point me to a config file format actually in use with
> such type of processor?
> I'd be thankful for your answers.
> Best Regards,
> Stephan Tolksdorf
> XML-SIG maillist - XML-SIG@python.org
Greg Stein, http://www.lyra.org/