Here is the super simple code i have:...HtmlDocument htmlDoc = new HtmlDocument();
htmlDoc.OptionWriteEmptyNodes = true;
htmlDoc.Load("sourcefilepath");
htmlDoc.Save("destfilepath", Encoding.UTF8);
...Input:...<?xml version="1.0" encoding="UTF-8"?>
<!DOCT...