Import data from an XML fileint sm_xml_import_file (char *filename);int sm_n_xml_import_file (char *filename, char *gsd);int sm_obj_xml_import_file (char *filename, int *objid);
- The name of the XML file.
- 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
customer_xml.scrscreen in the LDB.
- An object id indicating the screen or LDB receiving the XML import.
sm_xml_import_filereads the specified XML file and updates the specified objects. In order for the XML import to work, the tags associated with widgets and their 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.