An XML element.
Go to Property Listing | Method Listing
duplicate, exportFile, getElements, importXML, markup, move, placeXML, remove, select, store, toSource, toSpecifier, untag, validate
Cells, Characters, DTDs, EPSs, Images, InsertionPoints, Lines, Number, Object, PDFs, PICTs, PageItems, Paragraphs, SpecialCharacters, Stories, Story, String, Tables, TextColumns, TextStyleRanges, Texts, WMFs, Words, XMLAttributes, XMLComments, XMLElements, XMLInstructions, XMLItems, XMLTag
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
readonly |
A collection of table cells. |
||
|
readonly |
A collection of characters. |
||
|
read/write |
The contents of the text. Can return: String or SpecialCharacters enumerator. |
||
|
readonly |
A collection of DTDs. |
||
|
readonly |
A collection of EPS files. |
||
|
readonly |
The unique ID of the XMLElement. |
||
|
readonly |
A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF). |
||
|
readonly |
The index of the XMLElement within its containing object. |
||
|
readonly |
A collection of insertion points. |
||
|
readonly |
A collection of lines. |
||
|
read/write |
The XML tag applied to the element. Can also accept: String. |
||
|
readonly |
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. |
||
|
readonly |
A collection of paragraphs. |
||
|
readonly |
The parent of the XMLElement (a Document, XMLElement or XMLItem). |
||
|
readonly |
The story that contains the text. |
||
|
readonly |
A collection of PDF files. |
||
|
readonly |
A collection of PICT graphics. |
||
|
read/write |
A property that allows setting of several properties at the same time. |
||
|
readonly |
A collection of stories. |
||
|
readonly |
The index of the character containing the table (from the beginning of the story). |
||
|
readonly |
A collection of tables. |
||
|
readonly |
A collection of text columns. |
||
|
readonly |
A collection of text style ranges. |
||
|
readonly |
A collection of text objects. |
||
|
readonly |
A collection of WMF graphics. |
||
|
readonly |
A collection of words. |
||
|
readonly |
A collection of XML attributes. |
||
|
readonly |
A collection of XML comments. |
||
|
readonly |
A collection of XML elements. |
||
|
readonly |
A collection of XML instructions. |
||
|
readonly |
A collection of XML items. |
XMLElement duplicate ()
Duplicates the XMLElement.
undefined exportFile (format:Varies ExportFormat String, to:File, [showingOptions:Boolean=Boolean], using:PDFExportPreset)
Exports the object(s) to a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
The export format. Can accept: ExportFormat enumerator or String. |
|
|
to |
The path of the export file. |
|
|
showingOptions |
If true, prompts the user to select export options. (Optional) (default: false) |
|
|
using |
The export style to use. (Optional) |
Object getElements ()
Resolves the object specifier, creating an array of object references.
undefined importXML (from:File)
Imports an XML file.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
The path to the XML file. |
undefined markup (using:Varies Story Text PageItem)
Associates the object with the specified XML element while preserving existing content.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The object to mark up. Can accept: Text, Story or PageItem. |
XMLElement move (to:LocationOptions, reference:Varies XMLItem Text)
Moves the element to the specified location.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The location in relation to the reference object or within the containing object. |
|
|
reference |
The reference object. Note: Required when the to parameter specifies before or after. . Can accept: XMLItem or Text. (Optional) |
undefined placeXML (using:Varies Story PageItem)
Places XML content into the story, replacing the existing content.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The story into which to place the XML content. Can accept: Story or PageItem. |
undefined remove ()
Deletes the XMLElement.
undefined select ([existingSelection:SelectionOptions=SelectionOptions])
Selects the object.
|
Parameter |
Type |
Description |
|---|---|---|
|
existingSelection |
The selection status of the XMLElement in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
Asset store (using:Library)
Store a page item in a library
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The library in which to store |
String toSource ()
Generates a string which, if executed, will return the XMLElement.
String toSpecifier ()
Retrieves the object specifier.
undefined untag ()
Untags an element.
ValidationError validate ([maximumErrors:Number=Number])
Validates the element against a DTD.
|
Parameter |
Type |
Description |
|---|---|---|
|
maximumErrors |
The maximum number of validation errors to generate. (Optional) (default: 250) |
ValidationError.element
Cell.parent
Character.parent
DTD.parent
EPS.parent
Image.parent
InsertionPoint.parent
Line.parent
PDF.parent
PICT.parent
PageItem.parent
Paragraph.parent
Story.parent
Table.parent
Text.parent
TextColumn.parent
TextStyleRange.parent
WMF.parent
Word.parent
XMLAttribute.parent
XMLComment.parent
XMLElement.parent
XMLInstruction.parent
XMLItem.parent