With the spooled file extractor you can create transformations (with the extension .sfe), that can convert a spooled file into XML.
These transformations can be linked directly in a template, so that the spooled file is converted directly into XML, when you merge with the template.
Alternatively can you also convert a spooled file into XML with this basic, converter workflow component: SPLF to XML.
The SPLF to XML component has this parameter:

The parameter must be the path to an .sfe file in the transformations.
The input payload is a spooled file (SPLF) and the output payload is XML.
Related Articles
XML Node Selection & Referencing
XPath provides multiple ways to reference and navigate through an XML structure. Learn how to select specific nodes using direct references, index numbers, conditions, and relationships with other nodes. Connecting preceding or following node sets to ...
Node Existence & Conditions
XPath allows you to verify the existence of nodes, check if they contain data, count occurrences, and ignore namespaces. This section covers essential techniques for validating and filtering XML elements. Calculating the sum of nodes Counting ...
XML to Excel
The advanced, create document workflow component, XML to Excel is described below. This is a workflow component, that accepts a special formatted input XML file (that defines the Excel layout) and converts this into an Excel file in the payload. ...
XML
XML is used widely in InterFormNG2 as both input and output payload in the workflow (and of course in the designer). Please notice, that some workflow components are listed as accepting only XML as input, where they actually also accept an IBM i ...
Splf extractor: How to use it in the workflow.
The spooled file extractor can be used for extracting XML data from an input spooled file, and one important part is of course to also use this transformation in the workflow of InterFormNG2. For that you need to use the workflow component, Splf to ...