Solved

Case Sensitive of elements in web.config and app.config files

Posted on 2014-02-14
3
1,842 Views
Last Modified: 2014-02-21
Are elements of a web.config and app.config case sensitive?

If so, are they just case sensitive in a sense where the open tag and closing tag must match - case wise? They don't need to be upper or lower but just match in case sensitivity sense.


<element1>
</element1>
0
Comment
Question by:metro156
  • 2
3 Comments
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39859974
The general answer to your question is that XML is case sensitive.

For example, the <connectionStrings> element must contain <add>, <remove>, or <clear> elements. If you put in an <Add> element the application will throw an exception.

Finally, an opening tag of <element> will not match a closing tag of <ELEMENT>.
0
 

Author Comment

by:metro156
ID: 39860038
So are you saying in certain elements like <add>, <remove>, <clear> they have to be lower case no matter what?

However, elements outside of those elements must be matching in case. It doesn't matter if they are both lower or both upper as long as they match opening and closing tags.
0
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 500 total points
ID: 39860355
So are you saying in certain elements like <add>, <remove>, <clear> they have to be lower case no matter what?

I thought it was pretty clear that's what I said, but let me repeat, <add> good, <Add>, <aDd>, <adD>, <ADD> bad.

XML is case sensitive. web.config is XML. End of story.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question