Hi,
> Even then(after changing from minOccur to minOccurs), it is failing.
> Initially i was using minOccurs only.
Your fixed schema works correctly with xerces sample sax.Counter :
D:\Utils\java\xerces>java -cp
xmlParserAPIs.jar;xercesImpl.jar;xercesSamples.jar
sax.Counter -n -v -s -f xmlsch.xml
xmlsch.xml: 540 ms (4 elems, 1 attrs, 0 spaces, 45 chars)
so it seems you have problems with parser initialization.
Please consult aforementioned example and if problem persists
try asking on xerces-user mailing list ...
HTH
Martin
--
Martin Krumpolec <>