There is currently no such configuration, but can you override the default deserializer using a custom (see quickxml wiki ) and make this exception?
If you want a more convenient way, you can submit a request for improvement Jira; for example, the new DeserializationConfig.Feature.COERCE_STRINGS_AS_NUMBERS
(true by default), which can be disabled to prevent such coercion.
source share