怎么用文本连续读取xml格式


private void Changed(object sender, System.IO.FileSystemEventArgs e)
        {
            lock (this)
                {
                    XDocument doc = XDocument.Load(e.FullPath);
               
                var query = from p in doc.Descendants("Set")//doc.Descendants("ROW")
                                where p.Element("Count").Value == "1"
                                select new { A = p.Element("Count").Value, B = p.Element("Pname").Value, C = p.Element("ARTICLE_TEXT_INFO1").Value, D = p.Element("PInsertion").Value, E = p.Element("POrntation").Value, F = p.Element("PVarString").Value };
                
                dataGridView1.DataSource = query.ToList();
                
            }
            //if (File.Exists(e.FullPath))
            //{
            //    File.Delete(e.FullPath);
            //}
            


        }


```只能读取一个,第二个就报错
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/875650662146191.png "#left")

你这个xml是不是已经被打开了处于占用状态?