|
-
Oct 24th, 2003, 03:44 PM
#1
Thread Starter
Hyperactive Member
Trying to retrieve value from basic XML
I have an XML file with the following:
<AppSetting>
...
Nothing of Interest
...
</AppSetting>
<Customer>
...
<add key=”Bla” value=”South”/>
...
</Customer>
My goal is to check if the key “Bla” is equal to “South” from my code.
If I put the key “Bla” in my AppSetting section then the following would work:
ConfigurationSettings.AppSettings["Bla"] == “South”
However, how can I access the value when it is placed inside the Customer Section? There must be some simple statement that can be used but I am unable to find anything besides getting Customer Section as a dictionary and going threw the setting [not something I want to do, only want that one value].
Any clues [using C#]?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|