tWriteXMLFields properties for Apache Spark Structured Streaming
Last updated: 9/30/2026Use these properties to configure tWriteXMLFields running in the Spark Structured Streaming Job framework.
The Spark Structured Streaming tWriteXMLFields component belongs to the Processing family.
The streaming version of this component is available in Talend Real-Time Big Data Platform and in Talend Data Fabric.
Basic settings
| Properties | Description |
|---|---|
| Output column | Select the schema column that will hold the serialized XML string. |
| Configure XML Tree | Click ... to open the XML mapping editor, where
you define the XML structure by mapping input columns to XML paths. The editor
supports three mapping sections:
|
| Schema and Edit schema |
A schema is a row description. It defines the fields (columns) processed by the component. When you create a Spark Job, avoid the reserved word line when naming fields.
Click Edit schema to modify the schema. If you modify a Repository schema, the available options include:
|
| Use group by | Select this check box to group multiple input rows into a single XML document. In the table that appears, add the columns used as grouping keys. |
| Use data column as partition key | Select this check box to use a data column as the partition key when writing to a downstream component such as tKinesisOutput. |
Advanced settings
| Properties | Description |
|---|---|
| Create empty element if needed | Select this check box to include empty XML elements in the output when an input column has no value. This check box is selected by default. |
| Encoding | Select the character encoding for the XML output from the drop-down list. |
Usage
| Usage guidance | Description |
|---|---|
| Usage rule |
This component is used as an intermediate step. This component, along with the Spark Structured Streaming component Palette it belongs to, appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection |
You need to use the Structured Streaming Configuration tab in the Run view to define the connection to a Spark cluster for the whole Job. This connection is effective on a per-Job basis. |