I'm trying to get all the divs that their class contains a certain word:
<div class="hello mike">content1</div> <div class="hello jeff>content2</div> <div class="john">content3</div>
I need to get all the divs that their class contains the word "hello". Something like this:
resultContent.DocumentNode.SelectNodes("//div[@class='hello']"))
how can i do it with agility pack?
I got it:
resultContent.DocumentNode.SelectNodes("//div[contains(@class, 'hello')]")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With