var attrValue = from a in (
                from x in root.Descendants() select x  //根节点下所有的Element
                ).Attributes()                 //获得每个Element的Attribute     
                select a.Value;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案