xml.Serializer.VariableToStax

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

Syntax

xml.Serializer.VariableToStax(
   var fgl-type,
   stax xml.StaxWriter )
  1. var is any BDL 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. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).