我有这样的读/写/修改XML
<?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>
一个XML文件,我用它作为我的代码的配置文件,我想这样的
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)
检索它们的值(的innerText)
那么如何读取它们的值以将它们分配给布尔变量,并且如果我想用false更改其中的一个值,我将如何能够做到这一点?
谢谢...
问候......
P.S:如果你写更多的解释代码,这将是这么多的赞赏。再次
谢谢...
谢谢,我会做一些调查,现在:)感谢帮助。 – Tarik 2008-12-11 19:19:22