Indesign Scripting Reference
home | search | Links
JavaScript >> XMLImportPreference

XMLImportPreference

XML import preferences.

XMLImportPreference Properties

Property Type Access Description
createLinkToXML Boolean r/w Whether to create a link to the imported XML file.
ignoreUnmatchedIncoming Boolean r/w Whether elements that do not match existing structure should be ignored.
importStyle XMLImportStyles enumeration r/w Whether to append or merge the incoming XML content.
importToSelected Boolean r/w Whether to import to a selected element (otherwise import at the root).
parent Object read The parent of the object.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.
removeUnmatchedExisting Boolean r/w Whether to delete existing structure that is not a part of the incoming XML.
repeatTextElements Boolean r/w Whether repeating text elements should ingherit formatting.

XMLImportPreference Methods

Method Returns Description
getElements Array of Objects Resolve the object specifier.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.