> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveToAsciiXMLFile Method of the PlainText Object

This method saves the recognized text from the [PlainText](/fine-reader/engine/api-reference/text-related-objects/plaintext) object into an XML file, including characters positions and recognition confidence information. The format of this XML file is the same as when exporting to XML format with [IXMLExportParams::WriteCharAttributes](/fine-reader/engine/api-reference/parameter-objects/export-parameters/xmlexportparams#writecharattributes) property set to XCA\_Ascii.

## Syntax

### C++

```cpp theme={null}
HRESULT SaveToAsciiXMLFile( BSTR Path );
```

### C\#

```csharp theme={null}
void SaveToAsciiXMLFile( string Path );
```

### Visual Basic .NET

```vb theme={null}
Sub SaveToAsciiXMLFile(Path As String)
```

## Parameters

Path

\[in] A string containing the full path to the file where the text should be saved. If this file does not exist, it will be created. If it does exist, it will be overwritten without prompt.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

By default, the character coordinates on the original image are saved. You may change this by loading, before this method call, a [user profile](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles#user_profiles) which includes the following line:

```
[XMLExportParams]
WriteNonDeskewedCoordinates = false
```

## See also

[PlainText](/fine-reader/engine/api-reference/text-related-objects/plaintext)
