edmiGetXMLConfigurationId
EdmiError edmiGetXMLConfigurationId(SdaiSchema schemaId,
SdaiString xmlConfigurationName,
SdaiInstance *xmlConfigurationId);
Retrieves the id of an Xml Configuration.
Arguments
Type | Name | Comment |
SdaiSchema | SchemaId | The schemaID that uniquely identifies an Express schema in an EDMdatabase for which the XML Configuration was created. |
SdaiString | XmlConfigurationName | The name of the XML Configuration. |
SdaiInstance | XmlConfigurationId | Address of a variable that will receive the instance Id that uniquely identifies the XML Configuration. |
Return Value
Options
Example
EdmiError rstat;
SdaiModel modId, dictModId;
SdaiSchema schemaId;
SdaiInstance xmlConfigId;
. . .
modId = edmiGetModelBN("London", "Block34");
sdaiGetAttrBN(modId, "UNDERLYING_SCHEMA", sdaiINSTANCE, &schemaId);
dictModId = sdaiGetInstanceModel(schemaId);
rstat = edmiGetXMLConfigurationId(dictModId, "XmlConfig", &xmlConfigId);
if (rstat) {
printf("\nError %d in edmiGetXMLConfigurationId: %s", rstat,
edmiGetErrorText(rstat));
} else {
printf("\nXML Configuration Id is %d", xmlConfigId);
}
. . .
See also