have you set the validation feature on ?
U have to do something like this:
parser.setFeature("http://xml.org/sax/features/validation";, true);

parser.setFeature(

"http://apache.org/xml/features/validation/schema";,

true);

 

HTH.

 

regards,

Shirish.

-----Original Message-----
From: Sushil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 06, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: <unique> validation



I have specified unique constraint for an element in my schema document. But, 
when I validate schema instance documents against this schema using Xerces 2 
Java Parser 2.4, error is not shown for the same value specified for the 
element i.e. supposed to be unique.
 
Does anyone know whether this is a known issue or suggest something that I may 
be doing wrong?
 
PS XML SPY 5.0 is showing error correctly.
 
Thanks in advance,
 
Sushil

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to