Use one or more of the functions in this group to retrieve the value of the specified syntax element.
Specify the appropriate function from this group that matches the type of data to be retrieved:
CciSize cniElementBitArrayValue(
int* returnCode,
CciElement* targetElement,
const struct CciBitArray* value);
CciBool cniElementBooleanValue(
int* returnCode,
CciElement* targetElement);
CciSize cniElementByteArrayValue(
int* returnCode,
CciElement* targetElement,
const struct CciByteArray* value);
CciSize cniElementCharacterValue(
int* returnCode,
CciElement* targetElement,
const CciChar* value,
CciSize length);
struct CciDate cniElementDateValue(
int* returnCode,
CciElement* targetElement);
CciSize cniElementDecimalValue(
int* returnCode,
CciElement* targetElement,
const CciChar* value,
CciSize length);
struct CciTimestamp cniElementGmtTimestampValue(
int* returnCode,
CciElement* targetElement);
struct CciTime cniElementGmtTimeValue(
int* returnCode,
CciElement* targetElement);
CciInt cniElementIntegerValue(
int* returnCode,
CciElement* targetElement);
CciReal cniElementRealValue(
int* returnCode,
CciElement* targetElement);
struct CciTimestamp cniElementTimestampValue(
int* returnCode,
CciElement* targetElement);
struct CciTime cniElementTimeValue(
int* returnCode,
CciElement* targetElement);
numberOfChars = cniElementCharacterValue(
&rc, firstChild, (CciChar*)&elementValue, sizeof(elementValue)
);
if (rc==CCI_BUFFER_TOO_SMALL) {
free(elementValue);
elementValue = (CciChar*)malloc(numberOfChars * sizeof(CciChar));
numberOfChars = cniElementCharacterValue(
&rc, firstChild, (CciChar*)&elementValue, sizeof(elementValue));
}