There are use cases where you might want to parse a flat file into an XML document for further processing. The example below shows such an implementation.
FlatFileAdapter_ConvertToXML_Example
Click here to download a simple example model that shows how to use the Flat File adapter to parse a flat file into an XML document in Scheer PAS Designer.
The conversion process consists of the following steps:
-
Flat File Parsing
You need to parse the flat file blob into a flat file data structure. Flat File Parsing describes how to define the needed data structures in the Designer for this example. -
XML Document Structure and Mapping
Before being able to create the XML document, you need to define the XML document structure using XML extensions, and map the data from the flat file. -
XML Serialization
Parse the data from the flat file structure into the XML document using classToXML().
Related Content
Related Pages:
Related Documentation: