C# html agility pack get elements by class name -


i'm trying divs class contains word:

<div class="hello mike">content1</div> <div class="hello jeff>content2</div> <div class="john">content3</div> 

i need divs class contains word "hello". this:

resultcontent.documentnode.selectnodes("//div[@class='hello']")) 

how can agility pack?

i got it:

resultcontent.documentnode.selectnodes("//div[contains(@class, 'hello')]")) 

Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

Ansible - ERROR! the field 'hosts' is required but was not set -