Adobe InDesign CS4 (6.0) Object Model JS: XML
From InDesign CS4
XML
QuickLinks
addNamespace, appendChild, attribute, attributes, child, childIndex, children, comments, contains, copy, defaultSettings, descendants, elements, hasComplexContent, hasOwnProperty, hasSimpleContent, inScopeNamespaces, insertChildAfter, insertChildBefore, length, localName, name, namespace, namespaceDeclarations, nodeKind, normalize, parent, prependChild, processingInstructions, propertyIsEnumerable, removeNamespace, replace, setChildren, setLocalName, setName, setNamespace, setSettings, settings, text, toString, toXMLString, xpathClass
| Property | Type | Access | Description |
|---|---|---|---|
| ignoreComments | bool | r/w | |
| ignoreProcessingInstructions | bool | r/w | |
| ignoreWhitespace | bool | r/w | |
| prettyIndent | number | r/w | |
| prettyPrinting | bool | r/w |
Methods
Class
Object defaultSettings ()
Object settings ()
Instances
void addNamespace (namespace: Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
XML appendChild (child: XML)
| Parameter | Type | Description |
|---|---|---|
| child | XML |
XML attribute (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML attributes ()
XML child (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
number childIndex ()
XML children ()
XML comments ()
| Parameter | Type | Description |
|---|---|---|
| xml | XML |
XML copy ()
XML descendants (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML elements (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
bool hasComplexContent (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML hasOwnProperty (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
Array inScopeNamespaces ()
void insertChildAfter (child1: XML, child2: XML)
| Parameter | Type | Description |
|---|---|---|
| child1 | XML | |
| child2 | XML |
void insertChildBefore (child1: XML, child2: XML)
| Parameter | Type | Description |
|---|---|---|
| child1 | XML | |
| child2 | XML |
number length ()
string localName ()
QName name ()
Namespace namespace ()
Array namespaceDeclarations ()
string nodeKind ()
XML normalize ()
XML parent ()
XML prependChild (value: XML)
| Parameter | Type | Description |
|---|---|---|
| value | XML |
XML processingInstructions (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
bool propertyIsEnumerable (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML removeNamespace (namespace: Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
XML replace (name: string, value: XML)
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| value | XML |
XML setChildren (children: XML)
| Parameter | Type | Description |
|---|---|---|
| children | XML |
void setLocalName (name: string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
void setName (name: QName)
| Parameter | Type | Description |
|---|---|---|
| name | QName |
void setNamespace (namespace: Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
XML text ()
string toString ()
string toXMLString ()
XML xpath (expr: string)
| Parameter | Type | Description |
|---|---|---|
| expr | string |
Used in:
XML XML.appendChild (child: XML)
bool XML.contains (xml: XML)
void XML.insertChildAfter (child1: XML, child2: XML)
void XML.insertChildBefore (child1: XML, child2: XML)
XML XML.prependChild (value: XML)
XML XML.replace (name: string, value: XML)
XML XML.setChildren (children: XML)
Return
XML Dictionary.toXML (prefix: string)
XML Reflection.toXML ()
XML XML.appendChild (child: XML)
XML XML.attribute (name: string)
XML XML.attributes ()
XML XML.child (name: string)
XML XML.children ()
XML XML.comments ()
XML XML.copy ()
XML XML.descendants (name: string)
XML XML.elements (name: string)
XML XML.hasOwnProperty (name: string)
XML XML.normalize ()
XML XML.parent ()
XML XML.prependChild (value: XML)
XML XML.processingInstructions (name: string)
XML XML.removeNamespace (namespace: Namespace)
XML XML.replace (name: string, value: XML)
XML XML.setChildren (children: XML)
XML XML.text ()
XML XML.xpath (expr: string)
| Jongware, 20-Jun-2010 v3.0.3d | Contents :: Index |