---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.barcoderecognition/barcodereader/importfromxml/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. Imports BarCode properties from the xml-file specified and applies them to the current BarCodeReader instance in C++."
---

## BarCodeReader::ImportFromXml(System::String) method


Imports [BarCode](../../../aspose.barcode/) properties from the xml-file specified and applies them to the current [BarCodeReader](../) instance.

```cpp
static System::SharedPtr<BarCodeReader> Aspose::BarCode::BarCodeRecognition::BarCodeReader::ImportFromXml(System::String xmlFile)
```


| Parameter | Type | Description |
| --- | --- | --- |
| xmlFile | System::String | The name for the file |

### ReturnValue

Returns **True** in case of success; 

**False** Otherwise

## See Also

* Class [BarCodeReader](../)
* Class [BarCodeReader](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## BarCodeReader::ImportFromXml(System::SharedPtr\<System::IO::Stream\>) method


Imports [BarCode](../../../aspose.barcode/) properties from the xml-stream specified and applies them to the current [BarCodeReader](../) instance.

```cpp
static System::SharedPtr<BarCodeReader> Aspose::BarCode::BarCodeRecognition::BarCodeReader::ImportFromXml(System::SharedPtr<System::IO::Stream> xmlStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| xmlStream | System::SharedPtr\<System::IO::Stream\> | The xml-stream for loading |

### ReturnValue

Returns **True** in case of success; 

**False** Otherwise

## See Also

* Class [BarCodeReader](../)
* Class [BarCodeReader](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
