Telling it to output XML as Micky suggests works, but if you have other reasons not to want XML, try this:
doc.OptionWriteEmptyNodes = true;
More Related Contents:
- How to get html elements with multiple css classes
- How to use HTML Agility pack
- Running Scripts in HtmlAgilityPack
- HTML Agility pack – parsing tables
- HTML Agility Pack strip tags NOT IN whitelist
- HtmlAgilityPack — Does close itself for some reason?
- Grab all text from html with Html Agility Pack
- Parsing HTML page with HtmlAgilityPack
- HTML agility pack – removing unwanted tags without removing content?
- htmlagilitypack – remove script and style?
- Selecting attribute values with html Agility Pack
- htmlagilitypack and dynamic content issue
- How can I use HTML Agility Pack to retrieve all the images from a website?
- How to fix ill-formed HTML with HTML Agility Pack?
- HtmlAgilityPack Drops Option End Tags
- How to get all input elements in a form with HtmlAgilityPack without getting a null reference error
- How to get img/src or a/hrefs using Html Agility Pack?
- Parsing HTML Table in C#
- ItextSharp Error on trying to parse html for pdf conversion
- Get a value of an attribute by XPath and HtmlAgilityPack
- SelectNodes with XPath ignoring cases
- Parsing HTML to get script variable value