<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="width" value="200" />
<add key="height" value="100" />
</appSettings>
</configuration>如何修改width和height的值?
<configuration>
<appSettings>
<add key="width" value="200" />
<add key="height" value="100" />
</appSettings>
</configuration>如何修改width和height的值?
解决方案 »
- 大家好,我碰到个问题无法解决,真是麻烦啊,不知道为什么,C#附加数据库的
- 帮忙给看一下最后的输出结果!!
- 〖编程擂台〗用C#去掉SQL语句中的注释
- string转换为int型问题
- 关于违约金的
- VC6跟C#都有源代码的相同压缩算法是什么?
- winform中:所试图打开的数据库被本机用户(Admin)以独占的方式打开"的错误! 有人遇到过吗?
- WINFROM 下面控件列表的样式
- 右键菜单多个子菜单的事件添加同一事
- 如何设置treelist的checkbox只勾选一个
- 用vc#2003访问带密码的Access数据库问题(winform)
- Datagrid自动填充的问题(自动生成标题和再用datatable填充)
msdn上有samples
if (openFileDialog1.ShowDialog() ==DialogResult.OK)
{
fileName = openFileDialog1.FileName ;
}
XmlDocument myXmlDocument = new XmlDocument();
myXmlDocument.Load(fileName);
XmlNode rootNode = myXmlDocument.DocumentElement;
//以下为修改值
rootNode.ChildNodes[0].ChildNodes[0].Attributes["value"].Value = 400;
rootNode.ChildNodes[0].ChildNodes[1].Attributes["value"].Value = 200;
myXmlDocument.save(Application.StartupPath+@"\updateNewBook.xml");