I'm using JAXB annotations to generate xsd schema from my classes.
Annotation @XmlElement with parameter defaultValue sets default value for element. Is it possible to set default value for @XmlAttribute?
P.S. I checked that xsd syntax allow default values for attributes
Might wanna check this: Does JAXB support default schema values?
To be honest, I don't have a clue why there isn't an attribute default option in standard JAXB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With