Defining a Asterisk Separated Value File Structure

Native Format Builder Wizard 6-71 Use the Delimited type option in the Native Format Builder wizard when creating the XML schema for this native file. Native Data Format to Be Translated The following native data format is provided: a+b+c+d+e f+g+h+i+j Native Schema The corresponding native schema definition is similar to the one in the previous use case except that instead of nxsd:terminatedBy=, you now define the terminated by format as nxsd:terminatedBy=+. See Section 6.2.2.2, Defining Terminated Data for details about the terminated style.

6.4.2 Defining the Schema for a Fixed Length File Structure

In this example, the native data used is the same as in the CSV case, but the data used is of type fixed length and not CSV. Use the Fixed Length option in the Native Format Builder wizard, to create the XML schema for this native file. In this use case, the Native Format Builder uses a fixed-length file type called address that contains the address details such as name, street, city, state, and country. Every element in this address native file has a fixed length. You can generate the corresponding NXSD and also test it. Perform the following steps to run the use case: 1. The data in a sample text file, address.txt, appears as below: Name Street City State Country ABC Private Limited Street1 Bangalore Karnataka India XYZ Private Limited Street1 Bangalore Karnataka India 2. Launch the Adapter Configuration Wizard and navigate to the Messages page, as displayed in Figure 6–4 , and click Define Schema For Native Format. The Native Format Builder Welcome page is displayed, as shown in Figure 6–5 .

3. Click Next. The Choose Type page is displayed.

4. Select Fixed Length as the file type, as shown in

Figure 6–17 . 6-72 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 6–17 Native Format Builder Wizard Choose Type Page

5. Click Next. The Native Format Builder File Description page is displayed.

6. Click Browse and select the address.txt file, as displayed in

Figure 6–18 . Figure 6–18 Native Format Builder Wizard File Description Page

7. Click Next. The Record Organization page is displayed, as shown in

Figure 6–19 .