DataCellReal Class

This class handles conversion to and from a real number (or decimal) data type and the schema language decimal data type. The main thing to note about this class is that the fromXML method trims spaces. If the source XML document is validated, the source Element with a schema language data type of decimal should never have spaces in it. However, we can't depend on validation being performed, and other methods that we'll develop later depend on there being no spaces in the Cell Buffer. So, we remove them with the fromXML method.

Logic for the DataCellReal fromXML Method
Arguments:
  None

Returns:
  Error status or throws exception

Trim Spaces
Remove leading plus sign if present
Return success
Logic for the DataCellReal toXML ...

Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.