Image tag not closing with HTMLAgilityPack
Telling it to output XML as Micky suggests works, but if you have other reasons not to want XML, try this: doc.OptionWriteEmptyNodes = true;
Telling it to output XML as Micky suggests works, but if you have other reasons not to want XML, try this: doc.OptionWriteEmptyNodes = true;
The expression you’re looking for is: //div[contains(@class, ‘class1’) and contains(@class, ‘class2’)] I highly suggest XPath visualizer, which can help you debug xpath expressions easily. It can be found here: http://xpathvisualizer.codeplex.com/