DataCellX12TM Class
This class handles conversion to and from the X12 Time data type to the schema language time data type based on ISO 8601. The differences in representation are shown earlier in the chapter in Table 9.6.
Logic for the DataCellX12TM fromXML Method
Arguments: None Returns: Error status or throws exception IF Buffer Length < 8 Return error ENDIF Hours <- Cell Buffer characters at offsets 0 and 1 Minutes <- Cell Buffer characters at offsets 3 and 4 Seconds <- Cell Buffer characters at offsets 6 and 7 Fractional Seconds <- Cell Buffer characters 9 and beyond, if present Cell Buffer <- Hours + Minutes + Seconds + Fractional Seconds Buffer Length <- String length of Cell Buffer Return success |
Logic for the DataCellX12TM toXML Method ...
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.