Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XML/schema validation errors >Thread Next - Re: XML/schema validation errors Re: XML/schema validation errorsTo: NULL Date: 1/15/2009 3:21:00 PM The Owner wrote:
> First:
>
> cvc-pattern-valid: Value '2009-01-15' is not facet-valid with respect to
> pattern '\d{4}-\d{2}-\d{2}' for type 'check_dattim_xmltype'.
>
> Does anybody know WHY this is is the case?
>
> Second:
>
> cvc-maxLength-valid: Value '2009-01-15' with length = '18' is not
> facet-valid with respect to maxLength '10' for type 'check_dattim_xmltype'.
>
> Again, does anybody know WHY this (length=18) is the case?
>
> Both errors apply to a (schema) restriction on: type="xs:string".
Could there be any whitespace in the element value? Make sure you have e.g.
<date>2009-01-15</date>
and not
<date> 2009-01-15 </date>
Of course I am guessing, you would better show us the relevant XML you
are trying to validate.
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
