## ExportToXml(string) {#exporttoxml_1}

Exports BarCode properties to the xml-file specified

```csharp
public bool ExportToXml(string xmlFile)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xmlFile | String | The name for the file |

### Return Value

Whether or not export completed successfully.

Returns **True** in case of success; **False** Otherwise

### See Also

* class [BarcodeGenerator](../)
* namespace [Aspose.BarCode.Generation](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)

---

## ExportToXml(Stream) {#exporttoxml}

Exports BarCode properties to the xml-stream specified

```csharp
public bool ExportToXml(Stream xml)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xml | Stream | The xml-stream |

### Return Value

Whether or not export completed successfully.

Returns **True** in case of success; **False** Otherwise

### See Also

* class [BarcodeGenerator](../)
* namespace [Aspose.BarCode.Generation](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)


