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

New Post: Selecting and without duplication

$
0
0

I want to parse a web page (using HTML Agility Pack) and capture all the text in all div's and p's without duplicating the content.  So I don't want any p's that are contained in div's that I've already captured.

Can anyone give me an example of how I can format the XPath code below to accomplish that?  (Or show me a different approach if that works better)

var AllUniqueDivsandPs = document.DocumentNode.SelectNodes("???");

Thanks!!

bob

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 655

Trending Articles



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