首页 > 代码库 > 遍历所有的XML

遍历所有的XML

XmlElement rootElement = doc.DocumentElement;
foreach (XmlElement childElement in rootElement)
{
    //Console.WriteLine(childElement.Name);
    foreach(var item in childElement)
    {

    }
}

 

遍历所有的XML