XML_BUILDER_OPTIONS
constXML_BUILDER_OPTIONS:object
Defined in: schemaGenerateUtils.ts:54
Standardized XML builder options to keep generated metadata formatted like Salesforce CLI
output. Deliberately untyped against fast-xml-builder’s own option type: its package.json
“exports” serves different (and inconsistent) .d.ts files for its “import” vs “require”
conditions, and the “require” one doesn’t declare a named XmlBuilderOptions export at all.
The new XMLBuilder(XML_BUILDER_OPTIONS) call site (which imports the constructor itself, not
a separate named type) still validates this object’s shape.
Type Declaration
Section titled “Type Declaration”format
Section titled “format”format:
boolean=true
ignoreAttributes
Section titled “ignoreAttributes”ignoreAttributes:
boolean=false
indentBy
Section titled “indentBy”indentBy:
string=' '
suppressEmptyNode
Section titled “suppressEmptyNode”suppressEmptyNode:
boolean=true