我的data.xml文件为<?xml version="1.0" encoding="utf-8" ?>
<!--[if !supportLists]-->1. <!--[endif]--><graph caption='整点天气实况' xAxisName='(h)'
yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>
<!--[if !supportLists]-->2. <!--[endif]--> <set name='一月' value='462' color='AFD8F8' />
<!--[if !supportLists]-->3. <!--[endif]--> <set name='二月' value='857' color='F6BD0F' />
<!--[if !supportLists]-->4. <!--[endif]--> <set name='三月' value='671' color='8BBA00' />
<!--[if !supportLists]-->5. <!--[endif]--> <set name='四月' value='494' color='FF8E46' />
<!--[if !supportLists]-->6. <!--[endif]--> <set name='五月' value='761' color='008E8E' />
<!--[if !supportLists]-->7. <!--[endif]--> <set name='六月' value='960' color='D64646' />
<!--[if !supportLists]-->8. <!--[endif]--> <set name='七月' value='629' color='8E468E' />
<!--[if !supportLists]-->9. <!--[endif]--> <set name='八月' value='622' color='588526' />
<!--[if !supportLists]-->10. <!--[endif]--> <set name='九月' value='376' color='B3AA00' />
<!--[if !supportLists]-->11. <!--[endif]--> <set name='十月' value='494' color='008ED6' />
<!--[if !supportLists]-->12. <!--[endif]--> <set name='十一月' value='761' color='9D080D' />
<!--[if !supportLists]-->13. <!--[endif]--> <set name='十二月' value='960' color='A186BE' />
<!--[if !supportLists]-->14. <!--[endif]-->
</graph>请教大家如何实现间数据表中的数据读出来,赋给1-12月份的值(怎么编程实现修改value的值)?
<!--[if !supportLists]-->1. <!--[endif]--><graph caption='整点天气实况' xAxisName='(h)'
yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>
<!--[if !supportLists]-->2. <!--[endif]--> <set name='一月' value='462' color='AFD8F8' />
<!--[if !supportLists]-->3. <!--[endif]--> <set name='二月' value='857' color='F6BD0F' />
<!--[if !supportLists]-->4. <!--[endif]--> <set name='三月' value='671' color='8BBA00' />
<!--[if !supportLists]-->5. <!--[endif]--> <set name='四月' value='494' color='FF8E46' />
<!--[if !supportLists]-->6. <!--[endif]--> <set name='五月' value='761' color='008E8E' />
<!--[if !supportLists]-->7. <!--[endif]--> <set name='六月' value='960' color='D64646' />
<!--[if !supportLists]-->8. <!--[endif]--> <set name='七月' value='629' color='8E468E' />
<!--[if !supportLists]-->9. <!--[endif]--> <set name='八月' value='622' color='588526' />
<!--[if !supportLists]-->10. <!--[endif]--> <set name='九月' value='376' color='B3AA00' />
<!--[if !supportLists]-->11. <!--[endif]--> <set name='十月' value='494' color='008ED6' />
<!--[if !supportLists]-->12. <!--[endif]--> <set name='十一月' value='761' color='9D080D' />
<!--[if !supportLists]-->13. <!--[endif]--> <set name='十二月' value='960' color='A186BE' />
<!--[if !supportLists]-->14. <!--[endif]-->
</graph>请教大家如何实现间数据表中的数据读出来,赋给1-12月份的值(怎么编程实现修改value的值)?
解决方案 »
- "winform"通过查询得到值怎么放入一个内存变量中
- winform中网页信息抓取问题
- c#如何调用下面的oracle存储过程?
- could not get ado.net connection
- 10个进程访问10个表,和10个进程访问1个表的速度比较
- 怎样取得vbs的返回值
- 读取app.config的奇怪错误 求解决
- c#2005基础控件问题:
- 我想每天下午五点定时从数据库中抓出一些数据生成一份excel文件,大家有没有好的解决方法,谢谢!
- StreamWriter造成正由另一进程使用,因此该进程无法访问
- 我想用c#发现任务管理器里的 映像名称 比如qq.exe 想发现他就把它关闭 不知道怎么做
- 怎么动态创建DataGridView 表头
{
//这里是取出value的值,
string strValue=rElem.Attributes["value"].value; //这样修改value的值
rElem.Attributes["value"].value="30";
}//然后保存
rDoc.Save("data.xml");
xml操作类