Is there an XPath equivilent for Linq to XML?

前端 未结 1 1934
闹比i
闹比i 2021-02-03 13:25

I have been using Linq to XML for a few hours and while it seems lovely and powerful when it comes to loops and complex selections, it doesn\'t seem so good for situations where

相关标签:
1条回答
  • 2021-02-03 14:05

    You can still use XPath, with the XPathEvaluate, XPathSelectElement and XPathSelectElements extension methods. You can also call CreateNavigator to create an XPathNavigator.

    0 讨论(0)
提交回复
热议问题