On an html-page I have from 0-4 divs with a specific class name.
What I want to do is get the html from the start to the first div, then from div1 position to div2 position, then div2 to div3, div3 to div4, and lastly div4 to end html.
Ive managed to do this with html.substring(0, div1.innerhtmlPos) , html.substring(div1End, div2.innerHtmlPos), etc. because I have yet to find out how to get the actual positions of the divs. I have tried StreamPosition, but if I try html.substring(0, streamposOfDiv1) it gets cut off at the wrong place.
Is there any way to get all the html over a node and between nodes?