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


   var fgl-type,
   stax xml.StaxWriter )
  1. var is any Genero BDL data type. Or it can be a structured type, like a RECORD or ARRAY, including elements with these data types. Optional XML mapping attributes can be added to the definition of variables for XML serialization.
  2. stax is a StaxWriter object.


This method serializes a BDL variable into a XML element node using a StaxReader object.

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).