tnblog
首页
视频
资源
登录

XML读取

//获取root节点 XElementroot=XElement.Load(Server.MapPath("~/路径文件名")); //根据路径得到值root里面的第一个子节点; XElementbook=root.Element("Books");//将root节点下的所有同一级节点Tolist List<System.Xml.Linq.XElement>BookName=book.Elements().ToList(); //根据索...

2021-04-23 浏览(6103)

;
.
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2026TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术