Reputation: 3
Can someone help me write a JAXB binding file used by XJC to remove the propOrder attribute from all @XmlType annotations in all generated classes? Here is what I have so far but it doesn't work because it doesn't match any nodes apparently:
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:xs="http://www.w3.org/2000/10/XMLSchema-instance"
xs:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
jaxb:version="3.0">
<jaxb:bindings schemaLocation="myschema.xsd">
<jaxb:bindings node="xs:schema/xs:complexType">
<jaxb:class>
<jaxb:annotation>@XmlType(name="{localPart}")</jaxb:annotation>
<jaxb:annotation>@XmlType(propOrder={})</jaxb:annotation>
</jaxb:class>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
Upvotes: 0
Views: 14