using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;namespace WriteDataSet
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class frmXMLWrite : System.Windows.Forms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Button btnWrite;
private System.Windows.Forms.Button btnWriteSchema; DataSet myDataSet = null; public frmXMLWrite()
{
//
// Required for Windows Form Designer support
//
InitializeComponent(); // TODO: Add any constructor code after InitializeComponent call

// Create the data set object 
myDataSet = new DataSet(); // Load XML data into a dataset:
myDataSet.ReadXml(@"c:\Videos.xml");
}
以上为主要的代码,也就是出错的地方,出错提示为:未处理的“System.IO.FileNotFoundException”类型的异常出现在 system.xml.dll 中。其他信息: 未能找到文件“c:\Videos.xml”。