Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  Returns all the XML Configuration data of an XML Configuration specified by its XML Configuration Id.
Related functions: edmiRemoteCreateXMLConfiguration , edmiRemoteDeleteXMLConfiguration , edmiRemoteGetXMLConfigurationId, edmiRemoteListXMLConfigurations, edmiRemoteReadXMLDocument, edmiRemoteReadXMLFile, edmiRemoteWriteXMLDocument, edmiRemoteWriteXMLFile.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiRemoteGetXMLConfiguration(SdaiServerContext serverContextId, 
                                         SdaiString        schemaName, 
                                         SdaiString        xmlConfigurationName, 
                                         SdaiInstance      *xmlConfigurationId, 
                                         SdaiString        *xmlConfigurationString, 
                                         SdaiString        *nameSpace, 
                                         SdaiString        *nameSpaceAlias, 
                                         SdaiString        *xmlSchemaURL,
                                         SdaiInvocationId  *edmiInvocationId);
 
Arguments:

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteGetXMLConfiguration(SdaiServerContext serverContextId, 
                                         SdaiString        schemaName, 
                                         SdaiString        xmlConfigurationName, 
                                         SdaiInstance      *xmlConfigurationId, 
                                         SdaiString        *xmlConfigurationString, 
                                         SdaiString        *nameSpace, 
                                         SdaiString        *nameSpaceAlias, 
                                         SdaiString        *xmlSchemaURL,
                                         SdaiInvocationId  *edmiInvocationId);


Returns all the XML Configuration data of an XML Configuration specified by its XML Configuration Id.

Arguments

...

TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiString

schemaName

The name of the Express Schema assosiated with the XML Configuration to explore.

SdaiString

xmlConfigurationName

The name of the XML Configuration. This is the string specified by the <configuration id=". . . tag in the XML Configuration.

SdaiInstance

xmlConfigurationId

Variable that will receive the instanceId that uniquely identifies the XML configuration in the EDMdatabase.

SdaiString

xmlConfigurationString

Variable that will receive the address of an allocated string containing the XML configuration.

SdaiString

nameSpace

Variable that will receive the address of an allocated string containing the optional namespace string associated with the XML configuration. This is the namespace of the elements contained in the UOS element of the generated XML.

SdaiString

nameSpaceAlias

Variable that will receive the address of an allocated string containing the optional alias for the <nameSpace>.

SdaiString

xmlSchemaURL

Variable that will receive the address of an allocated string containing the optional XML Schema URL.

SdaiInvocationId

edmiInvocationId

Currently unused.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 int i;
 EdmiError rstat;
 SdaiServerContext myContext;
 SdaiInstance *pConfigIds, configId;
 SdaiString *pConfigNames, configString;
 SdaiInteger nConfig;
 SdaiString nameSpace, nameSpaceAlias, xmlSchemaURL;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",

...


 "Johnny", "Supervisor", "cf37ftr",

...

 
 "TCP", "9090", "MyServerHost",

...

 
 NULL, NULL, NULL, NULL, NULL, &myContext);

...

 
 /* Get all xml configurations */

...


 rstat = edmiRemoteListXMLConfigurations(myContext,"IFC2X2_FINAL",

...


 &pConfigIds, &pConfigNames, &nConfig, NULL);

...

 
  
 /* Delete them one by one */

...


 for (i=0; i<nConfig; i++) {

...


 /* First, get the configuration info */

...


 rstat = edmiRemoteGetXMLConfiguration(myContext,

...

  
 "IFC2X2_FINAL", pConfigNames[i],

...

 
 &configId, &configString, &nameSpace,

...

 
 &nameSpaceAlias, &xmlSchemaURL, NULL);

...

 
 printf("\nDeleting Configuration %s", nameSpaceAlias);

...

 
 /* Then, delete it */

...

 
 rstat = edmiRemoteDeleteXMLConfiguration(myContext, "IFC2X2_FINAL",

...

 
 pConfigNames[i], NULL);

...

 
 }
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"