Gets the value of the namespace attribute for the specified syntax element. The syntax element name will have been set previously using cniSetElementNamespace or cpiSetElementNamespace.
This is used when converting a message that belongs to a namespace-aware domain to a bit stream.
CciSize cniElementNamespace( int* returnCode, CciElement* targetElement, const CciChar* value, CciSize length)
if (element != 0) { /*get name*/ cniElementName(&rc, element, (CciChar*)&elementName, sizeof(elementName)); /*get namespace*/ elementNamespace=(CciChar*)malloc(sizeof(CciChar) * elementNamespaceLength); elementNamespaceLength = cniElementNamespace(&rc, element, elementNamespace, elementNamespaceLength); if (rc==CCI_BUFFER_TOO_SMALL){ free(elementNamespace); elementNamespace=(CciChar*)malloc(sizeof(CciChar) * elementNamespaceLength); elementNamespaceLength = cniElementNamespace(&rc, element, elementNamespace, elementNamespaceLength); } checkRC(rc);