您的位置:首页 > 编程语言 > C#

C#读取XML文件

2012-08-14 20:01 211 查看
XmlReader xmlread = XmlReader.Create(HttpContext.Current.Server.MapPath("~/ReportConfigFile.xml"));

xmlread.ReadToFollowing(fixName);

IndexCaption = xmlread.GetAttribute("IndexCaption").Split('/');

IndexBranchID = xmlread.GetAttribute("IndexBranchID").Split('/');

IndexLocation = xmlread.GetAttribute("IndexLocation").Split('/');

IndexProductID = xmlread.GetAttribute("IndexProductID").Split('/');

StoredName = xmlread.GetAttribute("StoredName").Split('/');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: