XMLElement
An XML element.
Instance
Read Only
InsertionPoint storyOffset
The insertion point before the table in the story containing the table.
Read Only
Story parentStory
The story that contains the text.
Read Only
Mixed xmlContent
The text content or page item referred to by the element. Can return: Text, Story, PageItem, Movie, Sound, Graphic, Table or Cell.
Read Only
Number id
The unique ID of the XMLElement.
Read Only
Boolean isValid
Returns true if the object specifier resolves to valid objects.
Read Only
Mixed parent
The parent of the XMLElement (a Document or XMLElement).
Read Only
Number index
The index of the XMLElement within its containing object.
Read Only
XMLAttributes xmlAttributes
A collection of XML attributes.
Read Only
XMLElements xmlElements
A collection of XML elements.
Read Only
XMLItems xmlItems
A collection of XML items.
Read Only
XMLComments xmlComments
A collection of XML comments.
Read Only
XMLInstructions xmlInstructions
A collection of XML instructions.
Read Only
PageItems pageItems
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.
Read Only
Images images
A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF).
Read Only
Graphics graphics
A collection of imported graphics in any graphic file format (vector, metafile, or bitmap).
Read Only
EPSs epss
A collection of EPS files.
Read Only
WMFs wmfs
A collection of WMF graphics.
Read Only
PICTs picts
A collection of PICT graphics.
Read Only
PDFs pdfs
A collection of PDF files.
Read Only
Stories stories
A collection of stories.
Read Only
Tables tables
A collection of tables.
Read Only
Cells cells
A collection of table cells.
Read Only
Texts texts
A collection of text objects.
Read Only
Characters characters
A collection of characters.
Read Only
Words words
A collection of words.
Read Only
Lines lines
A collection of lines.
Read Only
TextColumns textColumns
A collection of text columns.
Read Only
Paragraphs paragraphs
A collection of paragraphs.
Read Only
InsertionPoints insertionPoints
A collection of insertion points.
Read Only
TextStyleRanges textStyleRanges
A collection of text style ranges.
Read Only
Events events
A collection of events.
Read Only
EventListeners eventListeners
A collection of event listeners.
Read Only
SVGs svgs
A collection of SVG files.
XMLTag markupTag
The XML tag applied to the element. Can also accept: String.
Mixed contents
The contents of the text. Can return: String or SpecialCharacters enumerator.
Object properties
A property that allows setting of several properties at the same time.
Methods
Asset store( Library using, Object withProperties )
Stores the object in the specified library.
Parameters
XMLElement move( LocationOptions to, Mixed reference )
Moves the element to the specified location.
Parameters
XMLElement duplicate()
Duplicates the XMLElement.
markup( Mixed using )
Associates the object with the specified XML element while preserving existing content.
Parameters
placeXML( Mixed using )
Places XML content into the story, replacing the existing content.
Parameters
untag()
Untags an element.
ValidationError validate( Number maximumErrors )
Validates the element against a DTD.
Parameters
applyParagraphStyle( Mixed using, Boolean clearingOverrides )
Applies the specified paragraph style to the text content of the XMLElement.
Parameters
applyCharacterStyle( Mixed using )
Applies the specified character style to the text content of the XMLElement.
Parameters
XMLAttribute convertToAttribute( String using )
Converts the XMLElement to an attribute of its parent element.
Parameters
Table convertElementToTable( XMLTag rowTag, XMLTag cellTag )
Converts the content of the XML element to a table.
Parameters
PageItem placeIntoInlineFrame( Measurement Unit (Number or String)=any dimensions )
Places an XML element into an inline frame.
Parameters
PageItem placeIntoInlineCopy( PageItem copyItem, Boolean retainExistingFrame )
Associates an existing page item with the XML element and places it into an inline frame.
Parameters
PageItem setContent( String using, String relativeBasePath )
Replaces the content of XML element with content imported from a file.
Parameters
Text insertTextAsContent( Mixed using, XMLElementPosition position )
Inserts the specified text as content before, in, or after the XML element.
Parameters
applyTableStyle( Mixed using, Boolean clearingOverrides )
Applies a table style to the table associated with the XMLElement.
Parameters
applyCellStyle( Mixed using, Boolean clearingOverrides )
Applies a cell style to the table cells associated with the XMLElement.
Parameters
applyObjectStyle( Mixed using, Boolean clearingOverrides, Boolean clearingOverridesThroughRootObjectStyle )
Applies an object style to the frame associated with the XMLElement.
Parameters
PageItem placeIntoFrame( Mixed on, Measurement Unit (Number or String)=any geometricBounds )
Places the XML element into a new rectangular page item. If the XML element was already associated with a page item, that page item is deleted.
Parameters
PageItem placeIntoCopy( Mixed on, Measurement Unit (Number or String)=any placePoint, PageItem copyItem, Boolean retainExistingFrame )
Associates the XML element with a copy of a page item.
Parameters
importXML( File from )
Imports the specified XML file into an InDesign document.
Parameters
XMLItem evaluateXPathExpression( String using, Mixed prefixMappingTable )
Evaluates an XPath expression starting at this XML element in the structure.
Parameters
Text findText( Boolean reverseOrder )
Finds text that matches the find what value.
Parameters
Text changeText( Boolean reverseOrder )
Finds text that matches the find what value and replaces the text with the change to value.
Parameters
Text findGrep( Boolean reverseOrder )
Finds text that matches the find what value.
Parameters
Text changeGrep( Boolean reverseOrder )
Finds text that matches the find what value and replaces the text with the change to value.
Parameters
Text findTransliterate( Boolean reverseOrder )
Finds text that matches the find character type value.
Parameters
Text changeTransliterate( Boolean reverseOrder )
Finds text that matches the find character type value and replaces the text with the change character type value.
Parameters
exportFile( Mixed format, File to, Boolean showingOptions, PDFExportPreset using, String versionComments, Boolean forceSave )
Exports the object(s) to a file.
Parameters
BackgroundTask asynchronousExportFile( Mixed format, File to, Boolean showingOptions, PDFExportPreset using, String versionComments, Boolean forceSave )
asynchronously exports the object(s) to a file.
Parameters
remove()
Deletes the XMLElement.
select( SelectionOptions existingSelection )
Selects the object.
Parameters
String toSource()
Generates a string which, if executed, will return the XMLElement.
XMLElement getElements()
Resolves the object specifier, creating an array of object references.
String toSpecifier()
Retrieves the object specifier.
EventListener addEventListener( String eventType, Mixed handler, Boolean captures )
Adds an event listener.
Parameters
Boolean removeEventListener( String eventType, Mixed handler, Boolean captures )
Removes the event listener.