Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

XMLCHAR

Example

The XMLCHAR built-in function dumps data from a structure as XML into a buffer. It returns the number of bytes written to the buffer. If the buffer is too small, the structure data is truncated and the number of bytes needed for the buffer to contain the structure is returned.

Read syntax diagramSkip visual syntax diagram>>-XMLCHAR--(--x--,--p--,--n--)--------------------------------><
 
x
Structure-reference.
p
Address of target buffer.
n
Length of target buffer.

The buffer length must have a computational type and will be converted to FIXED BINARY(31,0).

The buffer length must be nonnegative.

The structure-reference x must contain only computational data, i.e. only string and numeric data. The structure-reference x may contain arrays, but if itself is an array, then it must be completely subscripted.

The structure-reference x may contain substructures, but any contained substructure must not use an * in place of a name. However, an * may be used as the name of a base element, but in that case, the unnamed element will not be written to the target buffer.

When the xml is created,


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)