main in CSVToXMLBasic.java

Let's start with the implementation-dependent bit of pseudocode.

Set up DOM XML environment (dependent on implementation)
Create the Output XML Document (dependent on implementation)

There are at least three different ways to use JAXP and Xerces to set up the DOM and create a DOM Document. In the Xerces package org.apache.xerces.dom there is a DocumentImpl interface that allows us to create a DOM Document with a single method and no arguments.

Document docOutput = new DocumentImpl();

However, this interface is not part of the standard JAXP implementation and is listed as one of the internal APIs in the Xerces Javadocs's Implementation Documentation section. Portability and maintainability considerations lead me ...

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.