[XML Records] Null not Null but empty string

Forge Component
(32)
Published on 11 Jan (12 days ago) by Afonso Carvalho
32 votes
Published on 11 Jan (12 days ago) by Afonso Carvalho
Hi Guys,

Whe are working on XmlRecords version 1.5.8. When we set the option ExcludeIfNull to false it will add all the empty tags in the xml, so far so good! Only the null tag that it is creating is: <name /> only this is not a null tag but a empty string tag. It should be: <name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/> is this fixt in version 1.5.9?
This is done like this by design. 1.5.9 does not address this.

Since the OutSystems Platform doesn't have runtime null values, we don't distinguish between empty string and null. We have decided to 

Changing this would be a breaking change to previous XML Records versions, therefore it's unlikely we'll simply make that change. An alternative would be to add a configuration parameter to change that behavior.