I have an XML file like this
<?xml version="1.0" encoding="utf-8" ?> <Configurations> <EmailConfiguration> <userName>xxxx</userName> <password>xxx</password> <displayName>xxxxx</displayName> <hostAddress>xxxx</hostAddress> <sslEnable>xxx</sslEnable> <port>xxx</port> </EmailConfiguration> <LogConfiguration> <logEnable>true</logEnable> <generalEnable>true</generalEnable> <warningEnable>true</warningEnable> <errorEnable>true</errorEnable> </LogConfiguration> </Configurations>
and I use it as a configuration file for my code, and I want to get their values ββ(innerText) like this
bool logEnable = value comes from XML (logEnable) bool warningEnable = value comes from XML (warningEnable) bool errorEnable = value comes from XML (errorEnable) bool generalEnable = value comes from XML (generalEnable)
So, how can I read their values ββto assign them to boolean variables, and if I wanted to change one of their values ββwith false, how could I do this?
Thanks...
Yours faithfully...
Ps: If you wrote more explanatory codes, that would be so appreciated.
Thanks again...
Tarik source share