SCA

SDO XSD Helper API

SDO XSD Helper API
API Usage Examples

Function Index

SDOLIST ftypeDefine (SDOFACTORY pdf, FILE *pf)
 Populates the argument datafactory with types declared in an XML Schema file stream. More...
 
SDOLIST stypeDefine (SDOFACTORY df, char *schema)
 Populates a datafactory with types declared in a char buffer containing a serialized XML Schema. More...
 

Function Details

SDOLIST ftypeDefine ( SDOFACTORY  pdf,
FILE *  pf 
)

Populates the argument datafactory with types declared in an XML Schema file stream.

Only freshly created datafactories will be populated; if the argument datafactory already contains types other than the buitlin (XML Schema) datatypes, 0 is returned.

Parameters
pdfthe datafacory to load types into
pfXML Schema file to load types from
Returns
0 if unsuccessfull, a SDOLIST of loaded types otherwise; the result list can be accessed by using getTypeList()
SDOLIST stypeDefine ( SDOFACTORY  df,
char *  schema 
)

Populates a datafactory with types declared in a char buffer containing a serialized XML Schema.

Only freshly created datafactories will be populated; if the argument datafactory already contains types other than the buitlin (XML Schema) datatypes, 0 is returned.

Parameters
pdfthe datafacory to load types into
schemaXML Schema char buffer to load types from
Returns
0 if unsuccessfull, a SDOLIST of loaded types otherwise; the result list can be accessed by using getTypeList()