【发布时间】:2010-12-01 21:01:10
【问题描述】:
我需要在 html 文档中搜索<p class="content"> text here </p>
然后输出完整的节点路径(CSS或XPATH)
作为例子
html > body > div class ="something" > table > tr > p class="content"
我尝试使用 nokogiri,但它不能很好地处理类和其他属性..
我需要一个没有问题的解析器。
【问题讨论】:
标签: dom