StoreXmlSize Method (XDATA)


9.8A

 

The StoreXmlSize method returns the size of the XML data stream to be generated using the specified OPTIONS mask settings for the current contents in a XDATA object. The method uses the following format:

 

[label]

{object}.StoreXmlSize

[GIVING {return}] [using *Options={mask}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
return
Optional. A Numeric Variable that receives the size of the XDATA contents rendered as a Json stream.
mask
Optional. A Numeric Variable or decimal number that specifies a bit mask value to control the operations of this method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is set if the {return} value is zero.

  2. The OVER flag is set TRUE if the {return} numeric variable is too small to receive the size without being truncated.

  3. The EOS flag is always set FALSE.

  4. The *OPTIONS {mask} values are the same as defined by the XDATA StoreXML method.

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference StoreXml Method (XDATA) UpdateNode Method (XDATA)