W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004

RE: Error during the validating of XML Schema

From: Michael Kay <mhk@mhk.me.uk>
Date: Wed, 4 Feb 2004 09:17:53 -0000
To: "'Ferrari GIanni'" <Ferrari.gi@apss.tn.it>, <xmlschema-dev@w3.org>
Message-ID: <006d01c3eaff$c52da990$6401a8c0@pcukmka>
This is not an error in your schema, it is an error in the instance
document that you are validating against the schema. The schema says
that attribute CAB must be an integer, but it would seem that in your
instance document, the attribute is empty. Declaring the attribute as a
string makes the error go away because "" is a valid string but not a
valid integer.
 
Michael Kay

-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
On Behalf Of Ferrari GIanni
Sent: 04 February 2004 08:28
To: xmlschema-dev@w3.org
Subject: Error during the validating of XML Schema



Sorry,

I have too much doubts for this arguments, but i don't know other person
that can help me. So, I installed and configurated Jakarta-Tomcat, and
now I think my parser is working because in the console of my program I
have a lot of mistake about XML Schema. Obviously, I can't write you all
of mistake, but some errors are very strange. For example:

 

[Error] InvoiceXML.xml:21:60: cvc-attribute.3: The value '' of attribute
'CAB' on element 'BankingEnds' is not valid with respect to its type,
'integer'.

 

What does error mean? In my XML Schema this attribute is declared like:

 

            <!-- ID CAB -->

            <xsd:attribute name="CAB" type="xsd:integer"
use="required"/>

 

What is the problem? I found that the simpletype that I can put in my
XML SCHEMA are integer, decimal, string, etc.... If I put string, I
don't have problems, but if I put date, integer, DateTime, float,
decimal, I have this error. Please, someone can help me? Thank you so
much.

Regards

              Gianni

 

P.S. Oh I was forgotting to say you that during the validation across
DTD I didn't have this error. 

 

 
Received on Wednesday, 4 February 2004 04:18:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT