xml.Serializer.VariableToStax

Serializes a 4GL variable into an XML element node using a StaxWriter object.

Syntax

xml.Serializer.VariableToStax(
   var VARIABLE,
   stax xml.StaxWriter )
  1. var is any 4GL variable with optional XML mapping attributes.
  2. stax is a StaxWriter object.

Usage

The resulting XML element node of the serialization process will be added at the current cursor position of the StaxWriter object.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.