jjzjj

ProductView

全部标签

xml - linq 到 xml : how to select the value from elements

我需要返回元素列表.我下面的查询只返回第一个AssetText.非常感谢任何想法。varq=fromcinxDoc.Descendants("Product")where(int)c.Element("ProductView").Element("ViewId")==44select(string)c.Element("ProductView").Element("AssetText").Element("Text");44myfirstAssetTextmysecondAssetText45mythirdAssetText 最佳答案