public static string ValidateBook(string path) { var dom = new HtmlDom(XmlHtmlConverter.GetXmlDomFromHtmlFile(path, false));//with throw if there are errors return ValidateBook(dom, path); }