InDesign, XML Import, and Whitespace
Nov 10, 2006 | Computers | By Shawn Parker
This is as much a note to myself as it is an attempt to make this information easier to find by others.
Seemingly still undocumented in the InDesign Scripting Guide is a setting for controlling whitespace in imported XML files.
So, if you don’t want whitespace between XML elements honored on import while using a script run the import then set the preference for
xmlImportPreferences.ignoreWhitespace and set it to
When trying to find this information I had found several suggestions that were close but had wrong capitalization or other very slightly off spellings. This works.
So, hopefully this helps somebody.
Tagged as: import, indesign, preferences, scripting, whitespace, xml