ValidateBook() public method

public ValidateBook ( string descriptionOfBookForErrorLog ) : string
descriptionOfBookForErrorLog string
return string
Example #1
0
        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));
        }
Example #3
0
 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);
 }
Example #4
0
 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);
 }