Verwenden Sie eine oder mehrere der Funktionen in dieser Gruppe, um den Wert des angegebenen Syntaxelements abzurufen.
Geben Sie die entsprechende Funktion aus dieser Gruppe an, die dem Datentyp entspricht, der abgerufen werden soll:
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));
}