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
Post a Comment