Hi, There's at least one problem with your document. The namespace for xsi:nil is incorrect. You specified "http://www.w3.org/1999/XMLSchema-instance". It should be "http://www.w3.org/2001/XMLSchema-instance".
Keep in mind that what ships in JDK 1.5 is Sun's fork of the Xerces code base. It's very old now, contains code and bugs that Xerces never had and would probably have other issues that we fixed a long time ago. If you're having problems with this version you need to raise it with Sun. We have no influence over what goes in there. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org "Tevoi Andrea" <te...@cad.it> wrote on 02/04/2010 06:13:39 AM: > Hi, > > While validating an XML instance against its Schema I?ve got this exception: > cvc-complex-type.3.2.2: Attribute 'xsi:nil' is not allowed to appear > in element 'CDIP' > > Here is the XML istance portion: > <IN02 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns=" > http://www.cadit.it/SI/SIGS534"> > ? > <CDIP xsi:nil="true"/> > ? > </IN02> > > Here is the XML Schema portion: > ? > <xsd:element name="CDIP" nillable="true" minOccurs="0"> > ? > > Is it a Xerces Bug? (I use Xerces version that comes with JDK 1.5) > > Thanks in advance > Andrea Tevoi