以下代码比较两个XML文本并返回它们之间的数据更改的集合。此代码很好但需要尽可能资源友好。在LINQ中是否有更快的方法来执行此操作,例如没有创建XElements的两个集合并比较它们的每个字段的差异?usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Xml.Linq;namespaceTestXmlDiff8822{classProgram{staticvoidMain(string[]args){XDocumentxdoc1=XDocument.Parse(GetXml1());XDocu