the xml looks like
<root>
<service name="product" />
<service name="sim" />
<service name="blub" />
</root>
the schema should look like
<xs:element name="root">
<xs:complexeType>
<xs:element type='serviceProduct' name='service' />
<xs:element type='serviceSim' name='service' />
<xs:element type='serviceBlub' name='service' />
</xs:complexeType>
</xs:element>
Is it possible with JAXB Bindings to do that? I cannot change the xml but I would like t to have different java classes for product, sim, blub but its all the same xml element.
With class binding declerations it is possible to change the class name but how could I do this for the same element but with different attributes?
Thanks, Ralph