for (int i = 1; i < lXPaths.Count; i++) { string sXPathQuery = ????; // perhaps some string using lXPath[i-1] & lXPath[i] HtmlNodeCollection nTopic = htmDoc.DocumentNode.SelectNodes(sXPathQuery); . . . }
List of XPaths, lXPaths [0] "/body[1]/h1[1]" [1] "/body[1]/h1[2]" [2] "/body[1]/h2[1]" [3] "/body[1]/h2[2]" [4] "/body[1]/h2[3]" [5] "/body[1]/h1[3]" [6] "/body[1]/h2[4]" [7] "/body[1]/h2[5]" [8] "/body[1]/h2[6]" [9] "/body[1]/h2[7]" [10] "/body[1]/h3[1]" [11] "/body[1]/h3[2]" [12] "/body[1]/h3[3]" [13] "/body[1]/h3[4]" [14] "/body[1]/h3[5]" [15] "/body[1]/h3[6]" . . .
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)