I’m trying to determine whether the “Remap Break, Whitespace and Special Characters” option in InDesign’s Export XML dialog can be controlled via scripting.
The scripting DOM exposes:
app.xmlExportPreferences.characterReferences = true;
and the property is readable/writable. However, after extensive testing in InDesign 2024/2026, setting it to true or false:
- does not change the state of the Export XML checkbox,
- does not change the exported XML, and
-
app.xmlExportPreferences.remapBreakWhitespaceisundefined.
Has anyone successfully scripted this particular Export XML option, or is it simply not exposed through the InDesign scripting API?