How to get element content using only XPath and C# .NET

前端 未结 3 1420
粉色の甜心
粉色の甜心 2021-01-13 23:56

I\'ve found a lot of articles about how to get node content by using simple XPath expression and C#, for example:

XPath:

/bookstore/author/first-nam         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 00:27

    navigator.SelectSingleNode("/Cell/CellContent/Para/ParaLine/String/text()").Value
    

提交回复
热议问题