摘要:
foreach(var script in doc.DocumentNode.Descendants("script").ToArray()) script.Remove();foreach(var style in doc.DocumentNode.Descendants("style").... 阅读全文
posted @ 2015-11-12 17:47
夯
阅读(3762)
评论(0)
推荐(0)
摘要:
//选择不包含class属性的节点var result = node.SelectNodes(".//span[not(@class)]");//选择不包含class和id属性的节点var result = node.SelectNodes(".//span[not(@class) and not(... 阅读全文
posted @ 2015-11-12 16:25
夯
阅读(974)
评论(0)
推荐(0)
摘要:
xpath的作用就是两个字“定位”,运用各种方法进行快速准确的定位,推荐两个非常有用的的firefox工具:firebug和xpath checker定位1.依靠自己属性,文本定位//td[text()='xxx']//div[contains(@class,'xxx')]//div[@class=... 阅读全文
posted @ 2015-11-12 14:28
夯
阅读(342)
评论(0)
推荐(0)