[XML-SIG] XML appropiate for config files of a xml processor?
Greg Stein
gstein@lyra.org
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.
Cheers,
-g
On Thu, Nov 09, 2000 at 01:33:13PM +0100, Stephan Tolksdorf wrote:
> Hello,
>
> 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
> this:
> <tag xml="example">
> <start><p><p><b></start>
> <end></b></p></end>
> </tag>
>
> The processor should now transform
> "<example>test</example>"
> into
> "<p><b>test</b></p>".
>
> 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
> http://www.python.org/mailman/listinfo/xml-sig
--
Greg Stein, http://www.lyra.org/