Variety of Record Types

What if your CSV file has rows with different formats instead of all being the same? For example, what if you have a row for a purchase order header followed by rows for line items, instead of one row per line item with the header information repeated in each row? This leads us quite nicely into the next chapter, which deals with this type of file organization, only with fixed length records. We'll discuss that enhancement a bit at the end of Chapter 8.

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.