SaveToAsciiXMLFile Method of the PlainText Object

This method saves the recognized text from the 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 property set to XCA_Ascii.



HRESULT SaveToAsciiXMLFile( BSTR Path );


void SaveToAsciiXMLFile( string Path );

Visual Basic .NET

Sub SaveToAsciiXMLFile(Path As String)


[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.


By default, the character coordinates on the original image are saved. You may change this by loading, before this method call, a user profile which includes the following line:

WriteNonDeskewedCoordinates = false

See also


24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.