Skip to main content

Version of JAXB 2.x for that generates XMLElements for xsd:choice using custom binding

1 reply [Last post]
daana81
Offline
Joined: 2013-09-30
Points: 0

Hi,

I am trying to implement choice element in schema using JAXB 2.0 .Since default implementation of JAXB 2.0 generates XMLType, I tried to use custom binding to generate XMLElements for it .I am not able to generate XMlElements this using JAXB 2.0.x inspite of using custom binding.Below is the simple example I tried out.

SCHEMA FILE :

<?xml version="1.0" encoding="UTF-8"?>

























BINDING FILE :
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">



When I tried to implement above using JAXB 2.1 it generates XMLElements for xsd:choice using custom binding.I did not see anything specific to xsd:choice implementation availability only since JAXB 2.1 from Changelog.So can anyone calrify is XmlElements generation for xsd:choice exists only from JAXB 2.1 ??

Thanks,
Dhana

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
daana81
Offline
Joined: 2013-09-30
Points: 0

I am attaching the schema files that seems to be missing for reference in above query.