Is there an XPath equivilent for Linq to XML?

前端 未结 1 1180
广开言路
广开言路 2021-02-03 13:29

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:11

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

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