Gets the value of the "namespace" attribute for the specified syntax element
Defined In | Type | Member |
CPI_VFT | Optional | iFpElementValue |
CciSize cpiElementNamespace( int* returnCode, CciElement* targetElement, const CciChar* value, CciSize length);
If successful, the number of CciChars copied into the buffer is returned. If the buffer was not large enough to contain the namespace value, the number of bytes required is returned (and returnCode is set to CCI_BUFFER_TOO_SMALL).
elementNamespace=(CciChar*)malloc(sizeof(CciChar) * elementNamespaceLength); elementNamespaceLength = cpiElementNamespace(&rc;, element, elementNamespace, elementNamespaceLength); if (rc==CCI_BUFFER_TOO_SMALL){ free(elementNamespace); elementNamespace=(CciChar*)malloc(sizeof(CciChar) * elementNamespaceLength); elementNamespaceLength = cpiElementNamespace(&rc;, element, elementNamespace, elementNamespaceLength); } checkRC(rc);
Related concepts
User-defined parsers
User-defined extensions
Related tasks
Creating a parser in C
Related reference
cpiSetElementNamespace
Parser implementation functions
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
as08105_ |