## ImportFromXml(string) {#importfromxml_1}

Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.

```csharp
public static BarcodeGenerator ImportFromXml(string xmlFile)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xmlFile | String | The name for the file |

### Return Value

BarcodeGenerator instance

### See Also

* class [BarcodeGenerator](../)
* namespace [Aspose.BarCode.Generation](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)

---

## ImportFromXml(Stream) {#importfromxml}

Imports BarCode properties from the xml-stream specified and creates BarcodeGenerator instance.

```csharp
public static BarcodeGenerator ImportFromXml(Stream xml)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xml | Stream | The xml-stream |

### Return Value

BarcodeGenerator instance

### See Also

* class [BarcodeGenerator](../)
* namespace [Aspose.BarCode.Generation](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)


