Double-click the tFileList component
to open its Basic settings view.
In the Directory field, enter the
path to the directory to read XML files from, or browse to the path by
clicking the [...] button next to the
field.
Select Use Glob Expressions as
Filemask check box, add a new line in the Files field by clicking the [+] button, and enter "*.xml" as
the file mask so that all XML files in the directory will be used. Keep
all the other settings as they are.
Double-click the tFileInputXML
component to open its Basic settings
view.
Click the [...] button next to
Edit schema to open the Schema dialog box.
Click the [+] button to add a column,
give it a name, message in this
example, and select Document from the
Type list to handle XML format
files. Then, click OK to close the
dialog box.
In the File name/Stream field, press
Ctrl+Space to access the global
variable list, and select tFileList_1.CURRENT_FILEPATH to
loop on the context files' directory.
In in the Loop XPath query fields,
enter "/" to define the root as the loop node of the input
files' structure; in the Mapping table,
fill the XPath query column with
"." to extract all data from context node of the source
files, and select the Get Nodes check
box to build a Document type data flow.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!