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, idSpecialCharacters 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. |
| 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 |
| Delete |
Nothing |
Deletes the object. |
| Duplicate |
Object |
Duplicates the object. |
| Export |
Nothing |
Exports the object to a file. |
| 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). |
| Select |
Nothing |
Selects the object. |
| Store |
Asset |
Stores the object in a library. |
| Untag |
Nothing |
Untag an element. |
| Validate |
Array of ValidationErrors |
Validate XML structure against a DTD. |
Previous post: XMLElements
Next post: XMLComments