Closed mensinda closed 2 years ago
Digging further into this, I managed to get this working by manually changing the generated <iAmNull/>
to <iAmNull xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"true\"/>
.
So, I did some further digging and found that I could get Jackson XML to emit this automatically with XmlMapper.builder().configure(ToXmlGenerator.Feature.WRITE_NULLS_AS_XSI_NIL, true).build();
.
I am going to close this, since adding this option solved my issue, but I would still recommend to enable this by default (maybe a bit naive since this could be a breaking change) and / or document this in the README.md since I only found this by digging through the code.
Example:
jackson version: 2.13.2