Hi Mukul, I just found some time to compile the latest head revision from xml-schema-1.1-dev and compiled it. But it producues the identical error message as the standard jre-bundled xerces:
org.xml.sax.SAXParseException: cos-all-limited.2: The {max occurs} of an element in an 'all' model group must be 0 or 1. The value '-1' for element 'D' is invalid. Do I have to tell it to run in schema 1.1 mode? And if so, how? My test schema looks like this: <?xml version="1.0" encoding="utf-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.zeec.de" xmlns="http://www.zeec.de" elementFormDefault="qualified"> <xs:element name="SomeElement"> <xs:complexType> <xs:all> <xs:element name="A" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="B" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="C" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="D" type="xs:string" minOccurs="1" maxOccurs="unbounded" /> </xs:all> </xs:complexType> </xs:element> </xs:schema> Best regards, Felix 2010/2/13 Mukul Gandhi <muk...@apache.org> > Hi Felix, > The upcoming Xerces-J release, 2.10.0 would have a preview > implementation of XML Schema 1.1 and that would have this support. > > If you want, you may try compiling it from, > https://svn.apache.org/repos/asf/xerces/java/branches/xml-schema-1.1-dev/. > > On Sat, Feb 13, 2010 at 4:03 AM, Felix Nensa <ne...@zeec.biz> wrote: > > Hi folks, > > > > I am looking for an XML validator that supports Schema 1.1 or to be more > > precise just maxOccurs="unbounded" within <xs:all> elements. > > As I am using xerces-j for quite a while now it would be my first choice. > > Last week I checked out the head revision and compiled it but had no luck > > with my schema. > > Any hints would be great. Thanks in advance, > > > > Felix > > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org > >