You should remove the forwardslash prefix from “/img[@alt]” as it signifies that you want to start at the root of the document.
HtmlNode imageNode = linkNode.SelectSingleNode("img[@alt]");
You should remove the forwardslash prefix from “/img[@alt]” as it signifies that you want to start at the root of the document.
HtmlNode imageNode = linkNode.SelectSingleNode("img[@alt]");