[XML Records] Null not Null but empty string

[XML Records] Null not Null but empty string

  
Forge Component
(24)
Published on 15 Jun by Ricardo Silva
24 votes
Published on 15 Jun by Ricardo Silva
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.