Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Linux, and Windows
Description
Hi
I'm trying to use the XMLbeans framework to generate code to parse HL7
CDA (clinical document Architecture) documents. I can generate the code
but I'm unable to compile it, I have several errors (repeated
interface).
You can download the schema from :
http://www.ifc.cnr.it/hl7/Final.zip
the schema is Final\Schemas\CDA.xsd
I use -ms 100m -mx 400m
I got a reply from ykadiysk@bea.com :
Appears that there is an issue with one of the schemas (voc.xsd) which
we do not handle in the best possible way:
The definition of certain union types (e.g. Inhalation, OralRoute) have
an attribute memberTypes which often looks like this:
memberTypes="OralInhalation OralInhalation OralInhalation"
There are no errors generating the code as this is not illegal. It
appears that the right thing for XmlBeans to do in such cases is to make
sure that we treat this as a list of 1 QName instead of 3 but at the
moment we don't do so, so in this case we will generate a bad java file
(if you can edit the schema to get rid of the repetition all works
well).
Thank you