XMLElement

An XML element.

XMLElement Properties

Property Type Access Description
cells Cells read The cells in the object.
characters Characters read The characters of the object.
contents String, SpecialCharacters enumeration (see table at end of chapter) r/w The text contents.
dtds DTDs read All DTDs.
epss EPSs read The EPS graphics contained by the object.
id Long read A unique number identifying the object.
images Images read The images contained by the object.
index Long read Index of the object within its parent object.
insertionPoints InsertionPoints read The insertion points in the object.
lines Lines read The lines of text in the object.
markupTag XMLTag, String r/w The markup tag object as XMLTag or String.
pageItems PageItems read The page items contained by the object.
paragraphs Paragraphs read The paragraphs contained by the object.
parent Object read The parent of the object.
parentStory Story read The story containing the object.
pdfs PDFs read The PDF graphics contained by the object.
picts PICTs read The PICT graphics contained by the object.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.
stories Stories read Stories.
storyOffset Long read The location of the object from the beginning of the story.
tables Tables read The tables contained by the object.
textColumns TextColumns read The text columns contained by the object.
texts Texts read The texts contained by the object.
textStyleRanges TextStyleRanges read The text style ranges contained by the object.
wmfs WMFs read The WMF graphics contained by the object.
words Words read The words contained by the object.
xmlAttributes XMLAttributes read All XML attributes.
xmlComments XMLComments read All XML comments.
xmlElements XMLElements read All XML elements.
xmlInstructions XMLInstructions read All XML instructions.
xmlItems XMLItems read All XML items.

XMLElement Methods

Method Returns Description
duplicate Object Duplicates the object.
exportFile Nothing Export the object to file.
getElements Array of Objects Resolve the object specifier.
importXML 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.
placeXML Nothing Places content into the specified XML element (replacing the existing content).
remove Nothing Delete the object.
select Nothing Selects the object.
store Asset Stores the object in a library.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.
untag Nothing Untag an element.
validate Array of ValidationErrors Validate XML structure against a DTD.

Leave a Comment

Previous post:

Next post: