Solved

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

Posted on 2014-02-14
3
1,490 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now