Programming Guide



sm_*xml_import

Generates XML for annotated widgets

char sm_xml_import();
char sm_n_xml_import(char *gsd);
char sm_obj_xml_import(int *objid);

gsd
An expression indicating the screen or LDB receiving the XML import. For example, @screen_num(-1) specifies the next to top screen on the form stack, and @ldb("customer_xml.scr") specifies the customer_xml.scr screen in the LDB.

objid
An object id indicating the screen or LDB receiving the XML import.

Environment

C only

Returns

Description

sm_xml_import updates the specified objects from the imported XML. n order for the XML update to work, the tags associated with a widget and its corresponding containers must match the tags in the XML file. For more information on using these functions, see Chapter 22, "Using XML Data," in the Application Development Guide.

Freeing Memory

Do not call sm_ffree to free the value. It will be freed on the next call to one of these functions.