using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace testConsoleApplication1
{
class test解析xml文件
{
public static void Main()
{
List<List<string>> info = getFileList();
Console.WriteLine("一共有" + info.Count + "项");
foreach (List<string> liststr in info)
{
foreach (string str in liststr)
{
Console.WriteLine(str);
}
}
}
private static List<List<string>> getFileList()
{
string filename = @"D:\filesList.xml";
List<List<string>> filelist = new List<List<string>>();
List<string> tmpList = new List<string>();
int i = -1;