In the source control settings of Gearset, team owners can set the XML quote escaping style to 3 different values:

  • Unescaped style

  • Metadata API style

  • SFDX source style (this is the default)

This setting is team-wide and affects how commits/deployments to git branches are formatted.

Here are the ways that the formatting are different:

Unescaped style

  • Uses the characters ' and " in XML nodes.

  • The setting will convert UTF-8 into lower case utf-8 in the XML header

Metadata API style

To be consistent with the Salesforce metadata API, the setting:

  • converts quotes in XML nodes to " and '

  • converts the encoding info from utf-8 into UTF-8

SFDX source style

To be consistent with the Salesforce DX project/source format, the setting:

  • converts quotes in XML nodes to " and '

  • converts the encoding info from utf-8 into UTF-8

Did this answer your question?