[XML Records] Declaration missing after clearing null elements

[XML Records] Declaration missing after clearing null elements

  
Forge Component
(30)
Published on 5 Feb by Afonso Carvalho
30 votes
Published on 5 Feb 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