INSERTXML


9.0E

 

The INSERTXML instruction transfers information from program variables into an XML document. The statement format is as follows:

 

[label]

INSERTXML

{xfile},{record};[[[{field}=]{var}]|[{rs}=]{xfile}]|[{listctl}]:

 

 

[,[[{field}=]{var}]|[{rs}=]{xfile}]|[{listctl}..]:

 

 

[;]

 

Where:

label

Optional. A Program Execution Label.

xfile

Required. A previously defined and opened XFILE variable to which data is written.

record

Required. A previously defined Character String Variable, Numeric Variable, or Expression that selects the record to written.

field

Optional. The name of a field.

var

Optional. A previously defined Character String Variable, Numeric Variable, string or numeric ARRAY, or individual array element.

rs

Optional. The name of a recordset.

listctl

Optional. A supported list control.

;

Optional. indicates Partial I/O.

Flags Affected: NONE

Note the following:

  1. This statement functions the same as WRITE with the exception that the record is inserted into the XFILE at the given position.

 

 

See Also: XML Support



PL/B Language Reference GETFILE (XFILE) OPEN (XFILE)