Using the HTML Agility Pack is great for getting descendants and whole tables, etc., but how can you use it in the situation below.
...Html Code above...
<dl>
<dt>Location:</dt>
<dd>City, London</dd>
<dt style="padding-bottom:10px;">Distance:</dt>
<dd style="padding-bottom:10px;">0 miles</dd>
<dt>Date Issued:</dt>
<dd>26/10/2010</dd>
<dt>type:</dt>
<dd>cement</dd>
</dl>
...HTML Code below....
As you could find, if there were less than 15 in this case, I realized that you can do something with the elements, but you will need to find all the elements to find the correct one, and then find the number to check its value ? Or is there a way to use regex with the Agility package to achieve this better ...
source
share