Skip to main content

Flat (including CSV) Examples

To access the Flat examples, go to Other Projects > Examples > Maps > CSV.

  • The POPayPalCsv_PO2 map is a simple example of a mapping of CSV data of a PayPal purchase into an XML structure that defines a simple purchase order.

  • The AcmePOToFlat map is a mapping of the Acme purchase order XML to a corresponding binary flat file. The structure of the flat file has a tag in the first four bytes that indicates the type of data, with PO indicating the beginning of a new purchase order, DEL a delivery, and ITEM an item. Note that the structure definitions are identical as shown in the map. If you look at the output structure (Structures > Simple > AcmeRetailer/AcmePOFlat) you can see that the elements have delimited initiators, for example the /POs/PO element, so that the flat file contains tags that show the type of each record.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!