我将使用 c# 将数据从 xml 文件加载到组合框???代码未运行
代码 :
private void GetIrama()
DataAkses.EKG.Referensi referen = new DataAkses.EKG.Referensi(_conn);
DataTable data;
string msg;
XmlDocument xmldoc = new XmlDocument();
int i = 0;
string str = null;
FileStream fs = new FileStream("REF_IRAMA_DSR.xml", FileMode.Open, FileAccess.Read);
xmldoc.Load(fs);
ListItemPopup irm;
DataSet ds = new DataSet();
cbiramadasar.Items.Clear();
XmlNodeList colorList = xmldoc.SelectNodes("config/dataSources/dataSource");
foreach (XmlNode dataSources in colorList)
{
cbiramadasar.Items.Add(dataSources.Attributes["DESCRIP"].Value.ToString());
}
}