I have a XSD scheme but I cannot change the Scheme
<xs:attribute name="zbpName" type="Zbp_NC" use="required"/>
<xs:attribute name="zbpType" type="ZBPTYP_CL" use="required"/
Generation of Java-Classes works, but I want to ignore the Attribute use="required”. Is there a way to ignore this?
I want to get this result when I marshal.
<protectionPoint zbpName="Protection Point - 0">
But in the moment I get this result….
<protectionPoint zbpNotes="" zbpStation="" zbpInterlockingName="" zbpType="" zbpName="Protection Point - 0">
It is because the generated Clasess have this Annotation.
@XmlAttribute(name = "zbpStation", required = true)
But the should look like this…
@XmlAttribute(name = "zbpStation")
Thanks for your help ;-)