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

XMLItem

An XML item.

XMLItem Properties

Property Type Access Description
dtDs DTDs read All DTDs.
id Long read A unique number identifying the object.
index Long read Index of the object within its parent object.
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.
xmlComments XMLComments read All XML comments.
xmlElements XMLElements read All XML elements.
xmlInstructions XMLInstructions read All XML instructions.
xmlItems XMLItems read All XML items.

XMLItem Methods

Method Returns Description
duplicate Object Duplicates the object.
getElements Array of Objects Resolve the object specifier.
remove Nothing Delete the object.
select Nothing Selects the object.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.