Hi Daniel,
Thanks for posting in this group.
I have reviewed your posts. I think you already know the much benefit of
the XML, but as you think, most of the configuration files in .Net are
simple, so it worths no while to introduce such "complex" technical for
them.
I think the uniform xml format for config files is for uniformity and
standardization(just as keyur said). Just so, the .Net can provide the
uniform way for accessing and managing these files.
For the text file "simplicity" and xml file "complexìty", I think this
points to the content of the configuration file. This simplicity based on
you manipulating the configuration file manually. While you maintain the
config files through program in .Net or other applications, I think plaint
text file's "simplicity" becomes not so simple(because of non static and
uniform architecture). While xml's "complexity" become more easy(because of
rich tools and access models). We should be aware of the percentage of
accessing config files manually or programmatically.
Also, all the config files in the xml format(whether short or long) are
more scalable.
Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Daniel Billingsley" <dbillingsley@NO.durcon.SPAAMM.com>
| References: <umuuoJGqDHA.1724@TK2MSFTNGP10.phx.gbl>
<106101c3a868$70aee0c0$a501280a@phx.gbl>
<ucCkIdHqDHA.2772@TK2MSFTNGP10.phx.gbl>
<#YBPFuHqDHA.2512@TK2MSFTNGP09.phx.gbl>
<OQsd5#HqDHA.2592@TK2MSFTNGP10.phx.gbl>
| Subject: Re: Why XML config files?
| Date: Tue, 11 Nov 2003 14:03:07 -0500
| Lines: 33
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uTQpyZIqDHA.2244@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 68-74-16-211.ded.ameritech.net 68.74.16.211
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:198459
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| We don't disagree - I said quite clearly that config files are *typically*
| fairly simple, but acknowledged XML is obviously better for more complex
| situations.
|
| Of course, we're talking theoretically here. I would be curious to see
what
| percentage of .NET apps have config files this complex vs. the kind that
| could easily be handled by a flat text file.
|
| I find your point about breaking flat text files interesting because for
| simple configuration information I see a 6-line file with all kinds of XML
| tags much more prone to maintenance problems than a simple 1 or 2 line
flat
| file.
|
| I don't think we need to keep going 'round and 'round on this. I made
this
| comment because I saw a *few* valid points in another thread which claimed
| something like OO principles and n-tiered applications were the work of
| satan. Obvious nonsensical drivel. I do, however, personally know of
some
| OO purists that always tend to make simple projects 10 times more complex
| than they need to be, which in the long run costs somebody money.
|
| So my point here is I just that this is an example - I think (with no
| empirical evidence, of course) there are more cases than not that making
| config files XML added unnecessary complexity. Could .NET have supported
| both (without the VB namespace hack)? Hmmm.
|
|
| | > I beg to disagree. Configuration files can be quite complex.
|
| <snip>
|
|
|