Xerces-j 1.4.x itself supports Schemas - sorry i didnt know that. A sample program i tried with Xerces-j 2.0.0 beta3 also gave the same problem.
The page
http://www.apache.org/~edwingo/jaxp-faq.html says that :
Q: When I turn on validation, why do I fail to get any errors?
A: This is probably because you have not set an ErrorHandler. To get validation errors, three things must be true:
(1)The source document must be associated with a schema. For example, the source document contains a DOCTYPE declaration.
(2)Validation must be turned on.
(3)The application must set an ErrorHandler.
Often times, applications fail to perform the last item.
Any further improvements possible?
Regards,
Senthil