XML element

An XML element.

XML element elements

Name Refer to By
cells by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
characters by numeric index, as a range of elements, before/after another element, satisfying a
test
d t ds by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
e p ss by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
images by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
insertion points by numeric index, as a range of elements, before/after another element, satisfying a
test
lines by numeric index, as a range of elements, before/after another element, satisfying a
test
page items by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
paragraphs by numeric index, as a range of elements, before/after another element, satisfying a
test
p d fs by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
p i c ts by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
stories by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
tables by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
text columns by numeric index, as a range of elements, before/after another element, satisfying a
test
texts by numeric index, as a range of elements, before/after another element, satisfying a
test
text style ranges by numeric index, as a range of elements, before/after another element, satisfying a
test
w m fs by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
words by numeric index, as a range of elements, before/after another element, satisfying a
test
x m l attributes by numeric index, as a range of elements, before/after another element, satisfying a
test
x m l comments by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
x m l elements by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
x m l instructions by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID
x m l items by numeric index, by name, as a range of elements, before/after another element,
satisfying a test, by ID

XML element properties

Property Type Access Description
class integer read The class descriptor type.
contents string, special characters enumeration r/w The text contents.
id integer read A unique number identifying the object.
index integer read Index of the object within its parent object.
markup tag XML tag, string r/w The markup tag object as XMLTag or String.
object reference object read An object reference for this object.
parent object read The parent of the object.
parent story story read The story containing the object.
properties record r/w Property that allows setting of several properties at the same time.
story offset integer read The location of the object from the beginning of the story.

XML element methods

Method Returns Description
delete Nothing Delete the object.
duplicate object Duplicates the object.
export Nothing Export the object to file.
import XML Nothing Import a XML file into an InDesign document.
markup Nothing Mark up layout content with XML preserving the existing content.
move object Move element before/after another element or text object, or to beginning/end.
place XML Nothing Places content into the specified XML element (replacing the existing content).
select Nothing Selects the object.
store asset Stores the object in a library.
untag Nothing Untag an element.
validate list of validation errors Validate XML structure against a DTD.

Leave a Comment

Previous post:

Next post: