Get Data From XML
Description
The Get Data From XML transform provides the ability to read data from any type of XML file using XPath specifications.
Get Data From XML can read data from 3 kind of sources (files, stream and url) in 2 modes (user can define files and urls at static mode or in a dynamic way).
Options
Files Tab
The files tab is where you define the location of the XML files from which you want to read. The table below contains options associated with the Files tab.
Option | Description |
---|---|
Transform name | Name of the transform. |
XML Source from field |
|
File or directory | Specifies the location and/or name of the input text file. Note: Click Add to add the file/directory/wildcard combination to the list of selected files (grid) below. |
Regular expression | Specifies the regular expression you want to use to select the files in the directory specified in the previous option. |
Selected Files | Contains a list of selected files (or wildcard selections) and a property specifying if file is required or not. If a file is required and it is not found, an error is generated;otherwise, the file name is skipped. |
Show filename(s)… | Displays a list of all files that will be loaded based on the current selected file definitions |
Content Tab
Option | Description |
---|---|
Settings |
|
Additional fields |
|
Add to result filename |
|
Fields Tab
Option | Description |
---|---|
Name | The name of the output field |
XPath | The path to the element node or attribute to read |
Element | The element type to read: Node or Attribute |
Type | The data type to convert to |
Format | The format or conversion mask to use in the data type conversion |
Length | The length of the output data type |
Precision | The precision of the output data type |
Currency | The currency symbol to use during data type conversion |
Decimal | The numeric decimal symbol to use during data type conversion |
Group | The numeric grouping symbol to use during data type conversion |
Trim type | The type of trimming to use during data type conversion |
Repeat | Repeat the column value of the previous row if the column value is empty (null) |
Metadata Injection Support
All fields of this transform support metadata injection. You can use this transform with ETL Metadata Injection to pass metadata to your pipeline at runtime.