# Datatable To File

Converts a `DataTable` object to an `XML` file.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Input`   | `DataTable` | ✅Yes     | DataTable to convert |
| `FilePath` | `string` | ❌No      | Path where the XML file will be saved |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsDataTableToFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `DataTableToFileMessage` | `String` | Status/error message |
| `DataTableToBinaryResult` | `Byte[]` | Binary result of the XML |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |