edmiGetXMLConfiguration

EdmiError edmiGetXMLConfiguration(SdaiInstance xmlConfigurationId,
                                   SdaiString   *xmlConfigurationName,
                                   SdaiString   *xmlConfigurationString,
                                   SdaiString   *nameSpace,
                                   SdaiString   *nameSpaceAlias,
                                   SdaiString   *xmlSchemaURL);

Reads the XML Configuration data associated by a given XML Configuration Id.

Arguments


TypeNameComment
SdaiInstance

xmlConfigurationId

The instance Id of the XML Configuration.

SdaiString

xmlConfigurationName

An SdaiString pointer that will receive the name that was assigned to the XML Configuration. Use edmiFree to release this memory.

SdaiString

xmlConfigurationString

An SdaiString pointer that will receive the address of an allocated string buffer containing the XML Configuration data. Use edmiFree to release this memory.

SdaiString

nameSpace

An SdaiString pointer that will receive the address of a string buffer containing the namespace of the elements contained in the UOS element of the generated XML. Use edmiFree to release this memory.

SdaiString

nameSpaceAlias

An SdaiString pointer that will receive the address of an allocated string buffer containing the alias of the namespace above. Use edmiFree to release this memory.

SdaiString

xmlSchemaURL

An SdaiString pointer that will receive the address of an allocated string buffer containing the XML Schema URL associated with the <nameSpace> above.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 EdmiError rstat;
 SdaiModel modId;
 SdaiModel dictModId;
 SdaiSchema schemaId;
 SdaiInstance xmlConfigId;
 SdaiString xmlConfigName;
 SdaiString xmlConfigString;
 SdaiString nameSpace;
 SdaiString nameSpaceAlias;
 SdaiString xmlSchemaURL;
 . . .
  
 modId = edmiGetModelBN("London", "Block34");
 sdaiGetAttrBN(modId, "UNDERLYING_SCHEMA", sdaiINSTANCE, &schemaId);
 dictModId = sdaiGetInstanceModel(schemaId);
 rstat = edmiGetXMLConfigurationId(dictModId, "XmlConfig",&xmlConfigId);
 if (rstat = edmiGetXMLConfiguration(xmlConfigId, &xmlConfigName,
 &xmlConfigString, &nameSpace, 
 &nameSpaceAlias, &xmlSchemaURL)) {
 printf("\nError %d in edmiGetXMLConfiguration: %s", rstat, 
 edmiGetErrorText(rstat)); 
 goto Error; 
 }
  
 /* Print Configuration data */
 printf("\nXml Configuration Id: %d", xmlConfigId);
 printf("\nConfiguration Name: %s", xmlConfigName);
 printf("\nName Space: %s", nameSpace);
 printf("\nName Space Alias: %s", nameSpaceAlias);
 printf("\nSchema URL: %s", xmlSchemaURL);
 printf("\nConfiguration String: |%s|", xmlConfigString);
  
 /* Free allocated memory */
 edmiFree(xmlConfigName);
 edmiFree(xmlConfigString);
 edmiFree(nameSpace);
 edmiFree(nameSpaceAlias);
 edmiFree(xmlSchemaURL);
 . . . 

 

See also

Filter by label

There are no items with the selected labels at this time.

Â