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.