Adobe InDesign CS5 (7.0) Object Model JS: Namespace

InDesign CS5

Class

Namespace

 A XML namespace object.

QuickLinks

Namespace

Properties

PropertyTypeAccessDescription
prefixstring readonlyThe named prefix.
uristring readonlyThe URI.

Methods

Constructor

Namespace Namespace (prefix: any[, uri: string])
Creates a Namespace object.

ParameterTypeDescription
prefix any The URI prefix, specified as an existing Namespace object, QName object, or string.

•  If this is a Namespace or a QName object, the URI and prefix are set to that of the object.
• If this is a string, the prefix is set to that string, and the URI must be specified.
uristringThe URI if the prefix is specified as a string. (Optional)

Examplenew Namespace ("adobe", "http:/www.adobe.com")

Used in:

XML XML.addNamespace (namespace: Namespace)

XML XML.removeNamespace (namespace: Namespace)

void XML.setNamespace (namespace: Namespace)

void global.setDefaultXMLNamespace (namespace: Namespace)

Return

Namespace Namespace.Namespace (prefix: any[, uri: string])

Namespace XML.namespace ()

Jongware, 20-Jun-2010 v3.0.3dContents :: Index