Exploring the schemas
The COBOL-Purchases library is shown in the Application Development view of your workspace.
The PurchaseData.xsd DFDL schema opens in the DFDL editor. If it does not open, double-click the DFDL schema to open it in the editor.
The PurchaseData message is highlighted and models the COBOL PurchaseData structure from the copybook. The main editor view shows the logical components of the message such as elements and sequences. You can explore the PurchaseData structure by expanding the elements.
The physical rendering of each logical component is described by the DFDL properties in the Representation Properties tab. DFDL properties can be specified locally on the component, or can be inherited from pre-defined sets of DFDL properties. Inherited properties have an icon shown next to them, and hovering over the icon reveals where the property is defined. In this schema, inherited properties are obtained from schema CobolDataDefinitionFormat.xsd.
The COBOL REDEFINES within Item has been imported as xs:choice. The COBOL OCCURS DEPENDING ON has resulted in the DFDL property Occurs Count Kind for Item being set to 'expression', and the DFDL property Occurs Count is a DFDL expression that refers to ItemCount.
You will be test parsing an example binary data file using the PurchaseData message. The test parsing takes place entirely within the DFDL editor, so there is no message flow in this tutorial and no Deploy step. Before test parsing, switch to the DFDL Test perspective by clicking Window > Open Perspective and then clicking DFDL Test. (Alternatively, you can use the toolbar icon ).
Tip: If this Tutorial Steps View tab disappears when you switch perspectives, use the Window > Show View menu option to add it back.