我在我们的一个项目网页中有以下代码:XmlDocumentxDoc=newXmlDocument();xDoc.Load(File.FullName);//workthrougheachprintbatchinthisqueuefiletry{XmlNodeListnodeList=xDoc.SelectNodes("Reports/PrintBatch");foreach(XmlNodeprintBatchinnodeList)//xDoc.SelectNodes("Reports/PrintBatch")){PrintBatchbatch=newPrintBatch();batch