|
class test { private static string root;
public static void showXML(string path) { XmlDocument xd = new XmlDocument(); xd.Load(path); XmlNodeList xnl = xd.DocumentElement.ChildNodes; root = xd.FirstChild.NextSibling.Name;//记录根节点
Console.Write(root+"\n"); [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
|