Programmer's Guide > Interfaces > CMSObject interface > getAttribute method
  
getAttribute method
Reads the value of an attribute. Attributes are identified by name. If the attribute has more than one value, an index is used to identify which value to return.
To get the values of multiple attributes, use the getAttributes method.
getAttribute(attribute [, index] )
Parameters
Stringattribute
Specifies the attribute name.
intindex
[optional] Specifies the repeating attribute index (zero-based).
Returns
String. The attribute value.
Throws
CMSException
Raised for any error.