Use this function to get the value of the type attribute for the specified syntax element. You must set the syntax element type previously by using cniSetElementType or cpiSetElementType.
CciElementType cniElementType(
int* returnCode,
CciElement* targetElement);
The value of the target element type is returned. If an error occurs, CCI_FAILURE is returned, and the returnCode parameter indicates the reason for the error.