我爱Aspx >> XML/XLST >> 将XML信息存入文件(其实可以使用XMLDocuemnt里面自己带的方法,我还是喜欢我这种方式)。
try
{
string xmlFileContent="<?xml version='1.0' encoding='gb2312'?>\n\r";
xmlFileContent+="<?xml-stylesheet type='text/xsl' href="http://www.newasp.net/tech/net/realplayer.xsl?>\n\r";
xmlFileContent+="<courseslides xmlns='x-schema:slides-schema.xml'>\n\r";
。。。。。
xmlFileContent+="</courseslides>\n\r";
file=System.IO.File.CreateText("c:\\media.xml");
System.IO.StreamWriter file=new System.IO.StreamWriter(this.WorkPath(5)+"\\media.xml",false,System.Text.Encoding.Default);
file.Write(xmlFileContent);
file.Close();
}
catch(System.Xml.XmlException e)
{
MessageBox.Show("测试版运行中错误,请将以下详细错误信息发送到XXXX@XXX.COM,协助我们进一步修正,谢谢:"+e.Message,"系统错误",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Error);
}
我没看但是根据提示这个是写XML的..[04-30]
老外编的程序(一)--XMLDocum..[04-30]
Write relational data to an XM..[04-30]
这个东东很好的,俺是从xml偷过来..[04-30]
对象化数据---学习Xml Serializa..[04-30]
Reading XML Files using XmlDoc..[04-30]
将某一目录下的所有相同格式的 X..[04-30]
串行化XML(三)[04-30]
Upgrade Your INI Files to XML ..[04-30]
用C#遍历XML[04-30]
我没看但是根据提示这个是写XML的..[04-30]
老外编的程序(一)--XMLDocum..[04-30]
Write relational data to an XM..[04-30]
这个东东很好的,俺是从xml偷过来..[04-30]
对象化数据---学习Xml Serializa..[04-30]
Reading XML Files using XmlDoc..[04-30]
将某一目录下的所有相同格式的 X..[04-30]
串行化XML(三)[04-30]
Upgrade Your INI Files to XML ..[04-30]
用C#遍历XML[04-30]