InDesign2026
API 21.5.1.73
Object

XMLExportPreference

XML export preferences.

Preference XMLExportPreference
Hierarchy

Application | Document

XMLExportPreference

Properties

NameType AccessDescription
Boolean read/write If true, transforms the XML using an XSLT file.
Boolean read/write If true, replaces special characters with character references.
Boolean read/write If true, copies formatted images to the images subfolder.
Boolean read/write If true, copies optimized images to the images subfolder.
Boolean read/write If true, copies original images to the images subfolder.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean read/write If true, excludes the DTD from the exported XML content.
Boolean read/write If true, exports XML content from the selected XML element. If false, exports the entire document.
XMLExportUntaggedTablesFormat = XMLExportUntaggedTablesFormat.CALS
read/write The export format for untagged tables in tagged stories.
XMLFileEncoding
read/write The file encoding type for exporting XML content.
Boolean read/write If true, generates interlaced GIFs. Note: Not valid when image conversion is JPEG.
GIFOptionsPalette
read/write The color palette for GIF conversion. Note: Not valid when image conversion is JPEG.
ImageConversion
read/write The file format to use for converted images. Note: Valid only when copy optimized images and/or copy formatted images is true.
Boolean readonly Returns true if the object specifier resolves to valid objects.
JPEGOptionsFormat
read/write The formatting method for converted JPEG images. Note: Not valid when image conversion is GIF.
JPEGOptionsQuality
read/write The quality of converted JPEG images. Note: Not valid when image conversion is GIF.
Application | Document readonly The parent of the XMLExportPreference (a Application or Document).
File | NothingEnum
read/write The preferred browser for viewing XML. Can return: File or NothingEnum enumerator.
Object read/write A property that allows setting of several properties at the same time.
Boolean read/write If true, includes Ruby text in the exported XML content.
File | XMLTransformFile
read/write The name of the XSLT file. Note: Valid when allow transform is true. Can return: File or XMLTransformFile enumerator.
Boolean read/write If true, displays exported XML content in a specified viewer.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
XMLExportPreference[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the XMLExportPreference.

String

Retrieves the object specifier.

Object of 5

Properties elsewhere that hold a XMLExportPreference.

Return 1

Methods that return a XMLExportPreference.