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.