Import_from_XML_buffer

C/C++Pascal

BOOL Import_from_XML_buffer(cdp_t cdp, char * dad_ref, const char * buffer, int xmlsize, struct t_clivar * hostvars, int hostvars_count);
function Import_from_XML_buffer(cdp : cdp_t; dad_ref : PChar; buffer : PChar; xmlsize : Integer; hostvars : ^t_clivar; hostvars_count : Integer) : Boolean;


Parametry

cdp
context variable of the client
dad_ref
reference to DAD
buffer
variable containing the XML data
xmlsize
data size in the buffer variable
hostvars
array describing the client variables
hostvars_count
number of hostvars array values


Od verze

8.1

Popis

This function imports data in the XML format stored in the buffer variable according to the mapping specified in the DAD. The size of the buffer variable must set using xmlsize.

The dad_ref parameter may have two forms. If it is in the object_name prefixed with an asterisk (*object_name), the DAD will search the current opened application for a transfer type object, otherwise it is read from the specified variable.

You may pass values to client application variables bound to some element of the DAD using the hostvars array. The hostvars_count parameter contains the number variables. If you do not use these variables, set hostvars_count = 0.

You may also use the Import_from_XML_CLOB function.



Návratová hodnota

TRUE if successful, otherwise FALSE.

Viz