I have the following in my confid settings:
If I want to alter the node 'STAMP' I do the following:Code:<configuration> <appSettings> <add key="STAMP" value="999" /> </appSettings> </configuration>
What I want to know, and I know this is silly, but how do I read it?Code:XmlElement elementStamp = (XmlElement)doc.SelectSingleNode("/configuration/appSettings/add[@key='STAMP']"); elementStamp.SetAttribute("value", "999");





Reply With Quote