Skip to main content Skip to complementary content

Configuring the input components

Procedure

  1. Double-click the tFileList component to open its Basic settings view.
  2. 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.
  3. 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.
  4. Double-click the tFileInputXML component to open its Basic settings view.
  5. Click the [...] button next to Edit schema to open the Schema dialog box.
  6. 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.
  7. 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.
  8. 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!