xml.Serializer.StaxToVariable

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

Syntax

xml.Serializer.StaxToVariable(
   stax xml.StaxReader,
   var fgl-type )
  1. stax is a StaxReader object where the cursor points to an XML Element node.
  2. 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.

Usage

This method serializes a XML element node into a BDL variable using a StaxReader 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).