如何将xml转成一个dataset 操作dataset后 再强dataset转成xml
比如:
……
<Root>
<node id="1">
<code>123</code>
<name>hello</name>
</node>
<node id="2">
<code>456</code>
<name>hello</name>
</node>
……
</Root>
最好具体一点, 本人没有接触过xml 谢谢了
比如:
……
<Root>
<node id="1">
<code>123</code>
<name>hello</name>
</node>
<node id="2">
<code>456</code>
<name>hello</name>
</node>
……
</Root>
最好具体一点, 本人没有接触过xml 谢谢了
解决方案 »
- c#重绘button的问题
- webbrowser 显示完flash之后,能否操作flash,就是发送点击flash的命令
- 怎样使用Simplified Chinese Pin-Yin Conversion Library?
- 如何让程序开机自动运行自动登录?
- datagridview的单元格编辑问题
- SQl Reporting Server问题
- 如何在文本文件中定位一个关键字的位置?谢谢!!!!!!!!!!!!!!
- 怎么在程序中调用VS2005命令提示符来编译另一程序?
- c#.net的窗体布局-当窗体设为Maximized是,任务栏就看不见了
- 在VS.NET中的WIN FORM中怎么设置父,子窗子,怎么调用?
- 欢迎大家到我的小站看看!谢谢!
- 急 怎么在UltraWebGrid删除一行
//读XML
_ds.ReadXml(@"e:\1.xml");
.....操作dataset
//写入xml文件
_ds.WriteXml(@"e:\1.xml");
如果你的DataSet要保存状态的话,则:
ds.ReadSchema("schema file");
ds.ReadXml("data xml file", XmlReadMode.DiffGram);ds.WriteSchema("schema file");
ds.WriteXml("data xml file", XmlWriteMode.DiffGram);
//读XML
_ds.ReadXml(@"e:\1.xml");
.....操作dataset
//写入xml文件
_ds.WriteXml(@"e:\1.xml");我是用这样的方法来做的,但好象出了点问题,
能具体点怎么操作吗,,
_ds.ReadXml(@"e:\1.xml"); 只读出xml里面的一部分