dev@jaxb.java.net

Re: Generating classes from XCRI schema - "[ERROR] 'lang' is already defined" + others

From: mjw <matthew.willard_at_softwarecontractservices.com>
Date: Mon, 1 Dec 2008 09:37:31 -0800 (PST)

Still haven't found a way around this problem.

Started using XMLBeans but that won't be any good because I need to persist
the classes into a database using JPA. JPA requires a no argument
constructor but XMLBeans generated classes can be instantiated only through
a factory.

The problem seems to be caused by the XCRI schema
http://www.w3.org/2001/xml.xsd and
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd:

        <xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
        <xs:import namespace="http://www.w3.org/1999/xhtml"
schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/>

Time's running out and I am still stuck... all help appreciated!
-- 
View this message in context: http://www.nabble.com/Generating-classes-from-XCRI-schema---%22-ERROR--%27lang%27-is-already-defined%22-%2B-others-tp20365204p20774721.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.