S
Stimp
Hi all,
I'm trying to read a particular node value from an XML file, but I've
done some searching on the net and there doesn't seem to be a very basic
example.
Basically here's what I want to do...
- In my web.config I have:
<configuration>
<appSettings>
<add key="constring" value="blah" />
</appSettings>
....
- I want to retrieve the value of the key "constring"
I'm performing this from a dll so I can't access this value using
ConfigurationSettings.AppSettings("constring")
(plus I want to learn how to read xml files)
I'm sure this is only about 4 lines of code, anyone got any samples of
how to do this?
Much thanks,
Peter
I'm trying to read a particular node value from an XML file, but I've
done some searching on the net and there doesn't seem to be a very basic
example.
Basically here's what I want to do...
- In my web.config I have:
<configuration>
<appSettings>
<add key="constring" value="blah" />
</appSettings>
....
- I want to retrieve the value of the key "constring"
I'm performing this from a dll so I can't access this value using
ConfigurationSettings.AppSettings("constring")
(plus I want to learn how to read xml files)
I'm sure this is only about 4 lines of code, anyone got any samples of
how to do this?
Much thanks,
Peter