You can also use the upload file feature
to use XML files. These will be stored in the SQL warehouse configured in your fabric.
Properties
Source properties
The following properties are available for the XML Source gem.| Property | Description | Default |
|---|---|---|
| Schema | Define the structure of your data. This includes the column names and the data type for each column (such as String, Integer, etc.). Click Infer Schema to automatically detect the structure from the file. | None |
| Description | Add a description of the table. Click Auto-description to automatically generate the description. | None |
| Row Tag | Specify the XML tag that identifies a single row or record in the dataset. | None |
| Inference Data Sampling Limit | Define the maximum number of rows to sample for inferring the schema. Set to 0 to use all rows. | 0 |
Target properties
The following properties are available for the XML Target gem.| Property | Description | Default |
|---|---|---|
| Schema | Review the structure of your data. Prophecy automatically detects the schema from the input gem. | None |
| Description | Add a description of the table. Click Auto-description to automatically generate the description. | None |
Schema validation
Prophecy lets you enable schema validation for XML files in a Source gem. Use schema validation to ensure XML files conform to a predefined structure before ingesting the data. XML schema validation works for all file storage connections.Prerequisites
To use schema validation, you need an XSD schema file in the same directory as your source XML file. If your schema usesxs:include or xs:import to reference external schemas, those referenced schema files must also be in the same directory.
Set up schema validation
- In the Location tab, toggle Enable XSD Schema Validation.
- Provide a path to the XSD file that you will use to validate against.
- Open the Properties tab.
- Click Infer Schema.
Example
The following example shows an XML file and a corresponding XSD schema file that would validate successfully.Troubleshooting
If the schemas do not match:- Schema inference will fail.
- The Source gem will fail to run.

