为了账号安全,请及时绑定邮箱和手机立即绑定

c# 检查xml格式是否正确

c# 检查xml格式是否正确

C#
梦里花落0921 2019-03-22 15:14:49
c# 检查xml格式是否正确
查看完整描述

3 回答

?
慕后森

TA贡献1802条经验 获得超5个赞

需要引用
using System.Xml;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlStr);
// 表集合
XmlNodeList nodeList_Table = doc.SelectSingleNode("DATA").ChildNodes;

// 行集合
XmlNodeList nodeList_Row = node_Table.ChildNodes;

// 列集合
XmlNodeList nodeList_Col = node_Row.ChildNodes;



查看完整回答
反对 回复 2019-03-30
  • 3 回答
  • 0 关注
  • 505 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信