Programming Guide |
Generates XML for annotated widgets
char *sm_xml_export();char *sm_n_xml_export(char *gsd);char *sm_obj_xml_export(int *objid);
gsd
- An expression indicating the screen or LDB to use for XML generation. For example,
@screen_num(-1)
specifies the next to top screen on the form stack, and@ldb("customer_xml.scr")
specifies thecustomer_xml.scr
screen in the LDB.objid
- An object id indicating the screen or LDB to use for XML generation.
- · Success: A character string containing the generated XML
The sm_*xml_export
functions generate XML for the specified screen. You can callsm_xml_export
to generate XML for the current screen.In order to be included in the XML, widgets must have the
xml_tag
property specified. In addition, the screen must have a value in thexml_tag
property or both thexml_prefix
andxml_postfix
properties. For more information on using these functions, see Chapter 22, "Using XML Data," in the Application Development Guide.Do not call sm_ffree to free the returned value. This value will be freed on the next call to one of these functions.