Re: Help Needed

Liam Quin <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
On Wed, Mar 18, 2009 at 08:55:19AM -0400, pDale wrote:
> While this should be off-topic (not about XML), let us take this opportunity
> to say again, just in case anyone doesn't know:
> 
> Do not use XML files for program configuration!

Let's not say such silly things.

> To use something like Windows INI files (before MS did a thing worse than
> XML for config and created the Registry), use the Perl module Config::STD.

Or use XML::Simple and you get an XML configuration file that can
be edited with any XML tool, instead of needing proprietary
Microsoft tools (or error-prone text editors).

Or to be fairer... there's no single best answer, so maybe
it's best to try to avoid categorical statements.

The important thing really is to avoid making up your own
format with its own syntax (as Apache has for example).
If your program is used with XML a lot, and the configuration
file will mostly be edited by people familiar with XML,
then an XML configuration file may make perfect sense.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.