

Re: Error during the validating of XML Schema

From: George Cristian Bina <george@sync.ro>
Date: Wed, 4 Feb 2004 10:53:17 +0200
Message-ID: <0adb01c3eafc$584faa60$1300000a@spelling>
To: "Ferrari GIanni" <Ferrari.gi@apss.tn.it>, <xmlschema-dev@w3.org>
Dear Gianny,

Many find the errors reported by Xerces somehow criptic but in fact they are giving you a lot of information. The schema errors are reported in general starting with a code followed by a number and then a description of the error. If you take that code and append it to the XML Schama Part 1 URL will get you to the relevant part of the specification. Look further for the statement labeled with the number following the code to find exactly the reason for the error.

In your case http://www.w3.org/TR/xmlschema-1#cvc-attribute is the link to the specification and you should look at statement 3.

As the error message says the value for attribute CAB is '' (empty) and this is not valid with respect to its integer type. Maybe you want 0 (zero) there ?

Hope that helps,
George Cristian Bina mailto:george@oxygenxml.com
<oXygen/> XML Editor - http://www.oxygenxml.com/

  ----- Original Message ----- 
  From: Ferrari GIanni 
  To: xmlschema-dev@w3.org 
  Sent: Wednesday, February 04, 2004 10:27 AM
  Subject: Error during the validating of XML Schema


  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.



  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 03:45:19 GMT
