Utilice una o más de las funciones de este grupo para recuperar el valor del elemento de sintaxis especificado.
Especifique la función adecuada de este grupo que coincida con el tipo de datos que se va a recuperar:
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));
}