Requirements

This utility provides the reverse functionality of the one we developed in the previous chapter. The file organization and rationales are the same.

The general requirement for this utility is to convert a CSV file to an XML instance document. Design considerations dictate that the XML document is of a specific format, that is, a specific XML grammar. Supporting more than one grammar for the output document will make the code a lot more complicated. Our output document may be transformed into other XML grammars using XSLT. The sample output shows both the direct output of the utility and what it might be transformed into using XSLT. The list below summarizes the required functionality.

  • Input: A CSV file in uniform Row/Column organization, ...

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.