/// <copydocfrom cref="IXmlSchemaValidator.ValidateXPaths(string, string)" />
        public static IList <string> ValidatePaths(this IXmlSchemaValidator validator, string xml, IXPathValidator xpathValidator)
        {
            var doc = Load(xml);

            return(validator.ValidateXPaths(doc, xpathValidator));
        }
        /// <copydocfrom cref="IXmlSchemaValidator.Validate(string, string)" />
        public static IList <ValidationEventArgs> Validate(this IXmlSchemaValidator validator, string xml, XmlSchemaSet schemaSet)
        {
            var doc = Load(xml);

            return(validator.Validate(doc, schemaSet));
        }
 /// <copydocfrom cref="IXmlSchemaValidator.ValidateXPaths(string, string)" />
 public static IList <string> ValidatePaths(this IXmlSchemaValidator validator, XElement element, string schema = "")
 {
     return(validator.ValidateXPaths(element.ToString(), schema));
 }
 /// <copydocfrom cref="IXmlSchemaValidator.Validate(string, string)" />
 public static IList <ValidationEventArgs> Validate(this IXmlSchemaValidator validator, XElement element, string schema = "")
 {
     return(validator.Validate(element.ToString(), schema));
 }