I use the HTML Agility Pack to parse and convert the HTML file, but I get an “Item Already Added” exception when trying to create a new HTMLNode due to the index parameter.
HtmlNode node1 = new HtmlNode(HtmlNodeType.Element, doc, 0); node1.Name = "div"; HtmlNode node2 = new HtmlNode(HtmlNodeType.Element, doc, 0); node2.Name = "div";
html parsing indexing html-agility-pack
Diogo cardoso
source share