using System;
using System.IO;
using System.Xml;public class Sample
{
public static void Main()
{
//Create the XmlDocument.
XmlDocument doc = new XmlDocument();
doc.LoadXml("<book genre='novel' ISBN='1-861001-57-5'>" +
"<title>Pride And Prejudice</title>" +
"</book>"); //Save the document to a file.
doc.Save("data.xml");
}
}
using System.IO;
using System.Xml;public class Sample
{
public static void Main()
{
//Create the XmlDocument.
XmlDocument doc = new XmlDocument();
doc.LoadXml("<book genre='novel' ISBN='1-861001-57-5'>" +
"<title>Pride And Prejudice</title>" +
"</book>"); //Save the document to a file.
doc.Save("data.xml");
}
}
解决方案 »
- Dictionary<T1,T2>-Dictionary<T2,T1>
- 怎样在单件模式的Form引用其他Form
- [==========]sql 问题 删除 重复数据
- javascript 中出生年月 三个下拉框中的值使用js来动态赋值
- 怎样获得系统的默认字体(default font)?
- 无法绑定由多个部分组成的标识符
- C# 中怎样实现串口通信呢?有没有那位仁兄做过这方面的东西?
- asp.net中数据以Excel输出时遇到的怪异问题?欢迎有兴趣的朋友进来讨论一下?
- 事件处理
- 一个小问题,请教高手
- 請問這裏有香港的PROGRAMMER嗎? 好想認識你. 在線等待: MSN: [email protected]
- DataGrid高难度问题
System.IO.StringReader xmlSR = new System.IO.StringReader(xmlData);XmlDocument doc = new XmlDocument();
doc.Load(xmlSR);