Suggestion is to include (but is not limited to)...
OmitXMLDeclaration
Encoding
Indent
NewLineOnAttributes
For more detail on the base methods see https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmlwritersettings?view=netframework-4.8
Comments
It seems that I cannot post some sort of AL code examples in this submit form.I'm facing the same issue. I fixed it dirty but also like to have at least an extra OmitXMLDeclaration parameterXMLContentText: Text;Regex: Codeunit Regex;XmlTagTxt: Label '[\r\n]', Locked = true;XMLContentText := Regex.Replace(XMLContentText, XmlTagTxt, '', 1);
Category: Development
'Request is Blocked test. Cannot submit a comment'
Category: Development

Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.
Best regards,
Business Central Team