Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Xpath

$
0
0
Hi ,

Can any one suggest how can i write the xpath for the following .


1) if i want <span> tag to have either the text or the <br> tag within it

I tried this
_ htmldoc.DocumentNode.SelectNodes("not[//span//br]")_ but din't worked.


2)<a> tag can either have <span> or <img> as its child node ,

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>