c# 检查xml格式是否正确

c# 检查xml格式是否正确


梦里花落0921
浏览 506回答 3
3回答

慕后森

需要引用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;
打开App,查看更多内容
随时随地看视频慕课网APP