> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/xml-output-cp/options-xml-output-step/fields-tab-xml-output-step-options.md).

# Fields tab

![Fields tab in the PDI XML Output transformation step properties](https://3411831820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAYwCj9fPr1B2pjC11IOQ%2Fuploads%2Fgit-blob-b0d71f00ec12f28e61782124daab56ddf909b2cb%2FssPentahoXMLOutputFieldsTab.png?alt=media)

Use the **Fields** tab to define the properties for the fields exported to the output XML file.

| Column           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Fieldname**    | The name of the field.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Element name** | The name of the element in the XML file to use.                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Content type** | The type of data in the contents of the element.                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Type**         | The type of the field, either **String**, **Date**, or **Number**. Format masking conversion is used for numeric data. See [Number Formats](/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/common-formats/number-formats.md) for a complete description of format specifiers.                                                                                                                              |
| **Format**       | The format mask (number type). See [Common Formats](/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/common-formats.md) for information on common valid date and numeric formats you can use in this step.                                                                                                                                                                                                   |
| **Length**       | <p>The length of the field, which depends on the following field type:- <strong>Number</strong>: Total number of significant figures in a number.</p><ul><li><strong>String</strong>: Total length of string.</li><li><strong>Date</strong>: Total length of printed output of the string. For example, <code>4</code> only returns the year.</li></ul><p><strong>Note:</strong> The output string is padded to this length if it is specified.</p> |
| **Precision**    | The number of floating point digits for number-type fields.                                                                                                                                                                                                                                                                                                                                                                                         |
| **Currency**     | The symbol used to represent currencies (for example, `$10,000.00` or `€5.000,00`)                                                                                                                                                                                                                                                                                                                                                                  |
| **Decimal**      | The symbol used to represent a decimal point, either a period (`.`) as in `10,000.00` or it can be a comma (`,`) as in `5.000,00`                                                                                                                                                                                                                                                                                                                   |
| **Group**        | The method used to separate units of thousands in numbers of four digits or larger, either a comma (`,`) as in `10,000.00` or (`.`) as in `5.000,00`                                                                                                                                                                                                                                                                                                |
| **Null**         | The string to insert into the output XML file when the value of the field is null                                                                                                                                                                                                                                                                                                                                                                   |

Select \*\*Get Fields\*\* to retrieve a list of fields from the incoming PDI data stream.

Select **Minimal Width** to minimize the field length by removing unnecessary characters. If selected, string fields are no longer padded to their specified length.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/xml-output-cp/options-xml-output-step/fields-tab-xml-output-step-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
