Solved

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

Posted on 2014-02-14
3
2,036 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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