Child pages
  • Namespace
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Current »

Refresh page May 02, 2024 10:42

Supported Clients
SmartClient WebClient NGClient

Property Summary
String prefix Identifies the prefix of this namespace, if applicable.
String uri Identifies the namespace of this Namespace, if applicable.

Property Details

prefix

Identifies the prefix of this namespace, if applicable.

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var xmlElement = <xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">Hello World!</xhtml:p>;
var namespace = xmlElement.namespace();
application.output("Prefix: " + namespace.prefix); //will output: 'xhtml'
application.output("URI: " + namespace.uri); //will output: 'http://www.w3.org/1999/xhtml'

uri

Identifies the namespace of this Namespace, if applicable.

Returns

Supported Clients

SmartClient,WebClient,NGClient

Sample

var xmlElement = <xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">Hello World!</xhtml:p>;
var namespace = xmlElement.namespace();
application.output("Prefix: " + namespace.prefix); //will output: 'xhtml'
application.output("URI: " + namespace.uri); //will output: 'http://www.w3.org/1999/xhtml'

  • No labels