Injecting code via xsd into a jaxb object

less than 1 minute read

Found a cool feature of jaxb/xjc, -Xinject-code. With example xsd from prior post, look for ‘ci’. The code should probably be wrapped in a CDATA element.

[sourcecode language=”xsd”]

com.edgriebel.util.Pair pairDO /* any test method here */

[/sourcecode]