Hi Matt, There's an error in the JiBX binding used for processing schema definitions, where the xs:whiteSpace element name is mispelled whitespace (all lower case). I've corrected that for the 1.2.2 release, but for a temporary work-around the best I can suggest is to make a copy of the schemas and do a global substitution of "whitespace" for "whiteSpace". This will make the copied schemas technically invalid, but they should then be accepted by the JiBX 1.2.1 code.
Currently the only restriction which is actually supported (i.e., enforced in the generated code) is xs:enumeration. Support for some of the more-useful restrictions (min/max+Exclusive/Inclusive/Length and length, probably) will likely be added to the code generation sometime after 1.2.2. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 matt_picker...@navyfederal.org wrote: > Hello, > > I am evaluating JiBX for a web services project within my organization and > the CodeGen tool is balking on my schema. I cannot post the full schema > since it is from a third-party vendor in addition to being rather large. I > am getting the following when I run CodeGen on the schema: > > Exception in thread "main" org.jibx.runtime.JiBXException: Expected > "{http://www > .w3.org/2001/XMLSchema}restriction" end tag, found > "{http://www.w3.org/2001/XMLS > chema}whiteSpace" start tag (line 47, col 63, in > > The relevant section of my schema : > > <xsd:simpleType> > <xsd:restriction base="xsd:string"> > <xsd:minLength value="0" /> > <xsd:maxLength value="200" /> > <xsd:whiteSpace value="preserve" /> > </xsd:restriction> > </xsd:simpleType> > > It seems JiBX doesn't like the <xsd:whiteSpace> restriction. Does JiBX > support this? I assume no. If so, how do I go about getting JiBX CodeGen > to ignore this element? This element is used heavily throughout the > schema. > > Thanks for any help anyone can provide. > > Matt > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users