...
Returns all XML Configurations for a given Express schema in the EDMdatabase.
Related functions: edmiCreateXMLConfiguration, edmiDeleteXMLConfiguration, edmiDeleteXMLConfigurationBN, edmiGetXMLConfiguration, edmiGetXMLConfigurationBN, edmiGetXMLConfigurationId
Header:
#include "sdai.h"
Prototype:
EdmiError edmiListXMLConfigurations(SdaiSchema schemaId,
SdaiInstance **xmlConfigurationIds,
SdaiString **xmlConfigurationNames,
SdaiInteger *numberOfConfigsReturned);
Arguments:
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiListXMLConfigurations(SdaiSchema schemaId,
SdaiInstance **xmlConfigurationIds,
SdaiString **xmlConfigurationNames,
SdaiInteger *numberOfConfigsReturned);
|
Returns all XML Configurations for a given Express schema in the EDMdatabase.
Arguments
...
Type | Name | Comment | |
SdaiSchema | SchemaId | The schemaID that uniquely identifies the Express schema in an EDMdatabase for which XML Configurations shall be listed. | |
SdaiInstance | **xmlConfigurationIds | The address of an SdaiInstance pointer that will receive the the address of an allocated buffer containing numberOfConfigsReturned XML Configuration Ids. | Use edmiFree to release the allocated memory. |
SdaiString | **xmlConfigurationNames | The address of an SdaiString pointer that will receive the the address of an allocated buffer containing numberOfConfigsReturned allocated XML Configuration Names. | Use edmiFree to release each of the allocated allocated XML Configuration Names as well as the SdaiString pointer buffer it self. |
SdaiInteger | *numberOfConfigsReturned | The number of XML Configurations listed for the Express Schema. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat; SdaiInteger i; SdaiSchema schemaId; SdaiModel modId; SdaiInstance *pXmlConfigIds; SdaiString *pXmlConfigNames; SdaiInteger nXmlConfigs; . . . rstat = edmiGetSchema("City", &schemaId); |
...
modId = edmiGetModelBN("London", "Block34"); |
...
if (rstat = edmiListXMLConfigurations(schemaId, &pXmlConfigIds, |
...
&pXmlConfigNames, &nXmlConfigs )) { |
...
printf("\nError %d in edmiListXMLConfigurations: %s", rstat, |
...
edmiGetErrorText(rstat)); |
...
goto Error; |
...
} /* Print XML Configurations */ |
...
for (i=0; i<nXmlConfigs; i++) { |
...
printf("\nXml Configuration Id - name: %d : %s", |
...
*(pXmlConfigIds+i), *(pXmlConfigNames+i)); |
...
edmiFree(pXmlConfigNames+i); |
...
} edmiFree(pXmlConfigIds); |
...
edmiFree(pXmlConfigNames); |
...
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|