To use javax namespace, you must use a version < 4.0.0 of this plugin. From 4.0.0 it uses the jakarta namespace for xml bindings.
Spotless can format <antlr | c | c# | c++ | css | flow | graphql | groovy | html | java | javascript | json | jsx | kotlin | less | license headers | markdown ...