【问题标题】:How to read table - TD content with htmlagilitypack - this table - TD has certain bacgkround image - xpath如何读取表格 - 带有 htmlagilitypack 的 TD 内容 - 此表格 - TD 有一定的背景图片 - xpath
【发布时间】:2011-12-16 00:09:47
【问题描述】:

使用 htmlagilitypack 我想阅读某些 TD 的文本。这个 td 有一定的背景,例如 image/acikustart.gif 使用 htmlagilitypack c# 我如何阅读这个 td 内容。这个背景只存在于 1 个元素中,而且页面设计得很糟糕,所以我必须使用这种方法:D

我的意思是表 - tr - td

<td background="image/acikustart.gif" height="61" width="100%">
&nbsp;&nbsp;<font face = "Arial" size = "2" color = "black"><b>Hoparlörler 
- TÜM MARKALAR</b></font></td>

所以从上面的源代码我会读到:Hoparlörler - TÜM MARKALAR

【问题讨论】:

    标签: c# .net xml xpath html-agility-pack


    【解决方案1】:

    用途:

    //table/tr/td[@background = 'image/acikustart.gif']//text()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-16
      • 2013-01-08
      • 2022-01-09
      • 2011-10-03
      相关资源
      最近更新 更多