This recipe is the reverse of the previous recipe, in that we'll be reading in a flat format and converting it to an XML document for output. It is recommended that you have understood the previous recipe prior to attempting this one.
Open the job
The first stage of the process is to convert the input data into a Java Document that can store the XML.
tXMLMapcomponent onto the canvas, and link the
tFileInputDelimitedcomponent to it.
customerDocumentOut, and add a field named
payload. Make the field a type of Document.