我用dataset打开了一个xml文件,我修改了dataset中的内容后,想把它保存到xml文件中去,应该如何做?谢谢了
解决方案 »
- 类似于fpSpread或MSFlexGrid1可编辑的列表控件,请问各位在.net的web开发时用的是什么控件.
- 请教bs软件的数据同步的问题
- 关于工作比较郁闷.请大家说说意见.
- 高手HELP
- 水晶报表之交叉表---苦熬三天无法解决!!!
- 高手指教:用户登陆完美解决方案?
- 网页是否能实现全局热键?
- response.redirect参数 #使用问题
- 求助,求助,都进来瞧瞧
- 序列化类型为“System.Reflection.RuntimeModule”的对象时检测到循环引用。
- TREEVIEW 如何击节点时展开(当时是闭合的),其它一个节点就闭合(当时是展开的)
- 关于控件的ID和NAME属性的疑问?
If thisDataSet Is Nothing Then
Return
End If
' Create a file name to write to.
Dim filename As String = "myXmlDoc.xml"
' Create the FileStream to write with.
Dim myFileStream As New System.IO.FileStream _
(filename, System.IO.FileMode.Create)
' Create an XmlTextWriter with the fileStream.
Dim myXmlWriter As New System.Xml.XmlTextWriter _
(myFileStream, System.Text.Encoding.Unicode)
' Write to the file with the WriteXml method.
thisDataSet.WriteXml(myXmlWriter)
myXmlWriter.Close()
End Sub