eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
203 stars 111 forks source link

issue with schema generation if no simple types in schema #426

Closed Tomas-Kraus closed 15 years ago

Tomas-Kraus commented 17 years ago

Hello, Please see the attached schemas. Also, see the attached xml. The code generated by xjc does not have any methods to get the value types. The thing with these schemas is that it has extensions and the all the data types including the base types are complex. Some xml is:

Jones Paul

So the Jones and Paul are not available in the generated objects when the xml file is unmarshalled,

Environment

Operating System: All Platform: All

Affected Versions

[2.1.4]

Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 17 years ago

@glassfishrobot Commented Reported by apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=207) core xsd

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=208) base XSD

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=209) base XSD

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=210) Narrative Block

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=211) base XSD

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=212) base xsd

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented apoorve said: Created an attachment (id=213) bindings file

Tomas-Kraus commented 16 years ago

@glassfishrobot Commented kohsuke said: The gist of the issue is the following type hierarchy:

What we should check is what it means to be mixed=true when the content type is empty. Otherwise it appears to me that the ED type should be generated in the mixed content style (i.e., List) Perhaps related to issue eclipse-ee4j/jaxb-api#244?
Tomas-Kraus commented 16 years ago

@glassfishrobot Commented snajper said: Will try to look at this for 2.1.10.

Tomas-Kraus commented 15 years ago

@glassfishrobot Commented snajper said: We introduced customization some time ago to enable better handling of extensions/restrictions in schemas with mixed content. Please see: http://blogs.sun.com/mgrebac/entry/handling_extended_mixed_content_in

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: bindings.xjb Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: CDA.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: datatypes-base.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: datatypes.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: NarrativeBlock.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: POCD_MT000040.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented File: voc.xsd Attached By: apoorve

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented Was assigned to jaxb-issues

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-426

Tomas-Kraus commented 15 years ago

@glassfishrobot Commented Marked as fixed on Sunday, February 15th 2009, 6:59:34 pm