CSVTargetConverter Class (Extends TargetConverter)

Overview

The CSVTargetConverter is the main driver for the conversion. It is derived from the TargetConverter base class (see Chapter 6). It takes an input XML Document as a DOM Document and writes it to the CSV file output stream. This structuring facilitates using the converter in future situations in which the input might come from an XSLT transformation in memory, producing a DOM Document as the result, rather than just a disk file. Here are its attributes and methods.

Attributes:

  • None

Methods:

  • Constructor

  • processDocument

Methods

Constructor

Similar to the source converter, the constructor method for the CSVTarget Converter object sets up that object and the CSVRecordWriter object.

Logic for ...

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.