You are here

shortQName

shortQName(string) returns the short, or prefix, version of a long QName.

Parameters

string

Returns

Returns a string of the prefix version of a QName.

Example

    var shortQName = utils.shortQName("{http://www.alfresco.org/model/content/1.0}content");
  

The preceding code snippet would return shortQName as cm:content.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.