add_user_xml

The add_user_xml function is deprecated. Use the Field Set instead (see _Document).

You can use this function for a Master Template to add user-defined data to the metadata XML file that also contains Master Template run information.

A metadata XML file can only be generated for Document Template runs that do not have OutputMode set to "pack".

 TEXT ignore := add_user_xml ( k; v )

The preceding call adds the key k and the value v to the XML metadata file if that file is generated. It inserts an element that looks in the following way.

<itp:element>
  <itp:key>k</itp:key>
  <itp:value>v</itp:value>
</itp:element>

The return value of the function should be ignored. The parameters are both of type CONST TEXT.