5
Include more of the options from the base .net XMLWriterSettings class. For example when using the new XML data types, there is currently no options to omit the document declaration when calling the XMLDocument.WriteTo() method. When building up SOAP envelopes, the XML declaration is not required.

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
Category: Development
STATUS DETAILS
Needs Votes
Ideas 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

Comments

M

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

M

'Request is Blocked test. Cannot submit a comment'

Category: Development