Sets the name of the specified syntax element.
void cniSetElementName( int* returnCode, CciElement* targetElement, const CciChar* name);
None. If an error occurs, the returnCode parameter indicates the reason for the error.
CciElement* lastChild = cniCreateElementAsLastChild(&rc, outRootElement); cniSetElementName(&rc, lastChild, elementName); cniSetElementType(&rc, lastChild, CCI_ELEMENT_TYPE_NAME);