コード例 #1
0
        /// <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));
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        public static IList <string> Validate(this IXPathValidator validator, string xml)
        {
            var doc = Load(xml);

            return(validator.Validate(doc));
        }