Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML/schema validation errors

Reply
Thread Tools

XML/schema validation errors

 
 
The Owner
Guest
Posts: n/a
 
      01-15-2009
Hi,

I'm a newbie whereas xml and xml schema are concerned. But I'm puzzeled
by two errors.

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=1 is the case?

Both errors apply to a (schema) restriction on: type="xs:string".

I've searched the internet but was not able to find an applicable answer
, only that others have run into similar problems.

TIA for any usable answer.
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      01-15-2009
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=1 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/
 
Reply With Quote
 
 
 
 
The Owner
Guest
Posts: n/a
 
      01-15-2009
Dear Martin,

yes you guessed right. Luckily I found this out by myselkf a little
while ago, and of course it makes perfect sense.

Thanks for your reply anyhow.

Karel de Vries

P.S: Do you mind if I (a XML/XSD newbie) ask (you) some (other) XML/XSD
related questions?


Martin Honnen wrote:
> 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=1 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.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.Net- 0 Build Errors, but I am prompted that there were build errors? Lance Wynn ASP .Net 1 02-03-2008 12:20 AM
Out-of-memory errors and caching errors. George1776 ASP .Net 2 09-14-2006 03:34 PM
Obsolete Errors and Deprecated Errors using Dotnet Framework 2.0 SenthilVel ASP .Net 0 06-07-2006 11:48 AM
Internet Explorer causing errors/ slow internet speed and Outlook express errors Jeanne Medley Computer Support 2 02-11-2004 11:44 PM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM



Advertisments