Dealy

Dealy

  • NA
  • 213
  • 0

How to parse html based on class

Oct 12 2012 1:32 AM
Hello,

I want to parse a webpage based on the class.Here's the div:
<div>
<div class="valueCl" itemprop="value">
Value: </div>
<div class="amount"> 100.00 </div>
<span class="spReq"> Special Request </span>
</div>

What I want is to get the following text on the console:
Value: 100.00 Special Request.

I tried to use HtmlAgilityPack but i couldn't make it work.

Can you give me some help please?

Thank you in advance.

Answers (4)