public static string ValidateBook(string path) { Debug.WriteLine(string.Format("ValidateBook({0})", path)); var dom = new HtmlDom(XmlHtmlConverter.GetXmlDomFromHtmlFile(path, false)); //with throw if there are errors return(dom.ValidateBook(path)); }
public static string ValidateBook(string path) { Debug.WriteLine(string.Format("ValidateBook({0})", path)); var dom = new HtmlDom(XmlHtmlConverter.GetXmlDomFromHtmlFile(path, false)); //with throw if there are errors var msg = GetMessageIfVersionIsIncompatibleWithThisBloom(dom); if (!string.IsNullOrEmpty(msg)) { return(msg); } return(dom.ValidateBook(path)); }
public static string ValidateBook(string path) { Debug.WriteLine(string.Format("ValidateBook({0})", path)); var dom = new HtmlDom(XmlHtmlConverter.GetXmlDomFromHtmlFile(path, false));//with throw if there are errors return dom.ValidateBook(path); }
private static string ValidateBook(HtmlDom dom, string path) { Debug.WriteLine(string.Format("ValidateBook({0})", path)); var msg= GetHtmlMessageIfVersionIsIncompatibleWithThisBloom(dom,path); return !string.IsNullOrEmpty(msg) ? msg : dom.ValidateBook(path); }