I want to parse the following HTML.
What I currently have is
var node = document.DocumentNode.SelectSingleNode("//div[@class='wrapper']");
The html is
<div class="wrapper">
<ul>
<li data="334040566050326217">
<span>test1</span>
</li>
<li data="334040566050326447">
<span>test2</span>
</li>
</ul>
I need to get the number from the li data
and the value between the span
tag. Any help appreciated.
Something like this might suit your needs.