When a xml pretty printer is used, the flag of WRITE_BIGDECIMAL_AS_PLAIN is not taken into account for that if statement.
Is there a reason for this? If not, I can see if I can create a PR to resolve.
https://github.com/FasterXML/jackson-dataformat-xml/blob/master/src/main/java/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.java#L1126