[XML Records] Declaration missing after clearing null elements

Forge Component
Published on 2019-11-25 by Afonso Carvalho
43 votes
Published on 2019-11-25 by Afonso Carvalho

Hello, first I'd like to thank you for your great extension, it has saved me and a lot of people vast amounts of work.

I'm having a little problem mixing the setting DefaultXmlConfig.ExcludeIfNull = true with the setting DefaultXmlConfig.XmlDeclaration.AddDeclaration = True on the .Net version of the xif.

After a little inspection I believe the source it's that the declaration is added on MssRecordListToXml before the cleansing operation and the cleansing operation discards the added string on the end of the funcion because of it's internal use of XDocument.Parse

I can of course work around this issue with Outsystems code while a solution is not found.

Hope this helps improve on an already great work,

Ricardo Cebola

Yes, would like to see this fixed for p10

I've spoken to Ricardo over a beer several times now, and even though we always end the night with a promise that he'll send me the fix, it never happens :)

It's definitely on the TODO list.

Hi guys!

Any news on this issue?



Hi everyone,

This is fixed in the latest XML Records version (1.6.4).

Hi guys, actually it is not fixed yet. I`ll be publishing a new version in the next couple hours fixing this issue.

But I'm only able to fix it on OS11. If you need help to fix it on a previous version, get in touch let's see how I can help you.


The 1.6.6 fixes this issue and is now available. Please feel free to give us any feedback.

Thank you.