# tWriteXMLFields

Converts records into byte arrays.

tWriteXMLFields generates strings or byte arrays for output components such as tKafkaOutput, which requires serialized data, and tJMSOutput, which requires strings. It embeds incoming data in a single XML column.

### In this section

* [tWriteXMLFields properties for Apache Spark Streaming (deprecated)](https://help.qlik.com/talend/en-US/components/8.0/processing/twritexmlfields-properties-for-apache-spark-streaming)
* [tWriteXMLFields properties for Apache Spark Structured Streaming](https://help.qlik.com/talend/en-US/components/8.0/processing/twritexmlfields-properties-for-apache-spark-structured-streaming)