/// <copydocfrom cref="IXmlSchemaValidator.ValidateXPaths(XDocument, IXPathValidator)" /> public IList <string> ValidateXPaths(XDocument document, IXPathValidator validator) { if (document == null) { throw new ArgumentNullException("document"); } if (validator == null) { throw new ArgumentNullException("validator"); } return(validator.Validate(document)); }
/// <copydocfrom cref="IXmlSchemaValidator.ValidateXPaths(XDocument, IXPathValidator)" /> public IList<string> ValidateXPaths(XDocument document, IXPathValidator validator) { if (document == null) { throw new ArgumentNullException("document"); } if (validator == null) { throw new ArgumentNullException("validator"); } return validator.Validate(document); }
public static IList <string> Validate(this IXPathValidator validator, string xml) { var doc = Load(xml); return(validator.Validate(doc)); }