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

# PlainText オブジェクトの SaveToAsciiXMLFile メソッド

> ABBYY FineReader Engine API における PlainText オブジェクトの SaveToAsciiXMLFile メソッド — 認識されたテキストを、文字位置と認識信頼度を含む XML ファイルに保存します（XCA_Ascii の文字属性を指定した XML エクスポートと同じ形式）。

このメソッドは、[PlainText](/ja/fine-reader/engine/api-reference/text-related-objects/plaintext) オブジェクトから認識されたテキストを XML ファイルに保存します。保存される情報には、文字の位置および認識の信頼度情報が含まれます。この XML ファイルの形式は、[IXMLExportParams::WriteCharAttributes](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/xmlexportparams#writecharattributes) プロパティを XCA\_Ascii に設定して XML 形式でエクスポートした場合と同じです。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

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

### C\#

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

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

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

<div id="parameters">
  ## パラメーター
</div>

Path

\[in] テキストの保存先ファイルのフルパスを格納する string。ファイルが存在しない場合は作成され、存在する場合は確認なしで上書きされます。

<div id="return-values">
  ## 戻り値
</div>

このメソッドには固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準戻り値](/ja/fine-reader/engine/api-reference/return-codes)を返します。

<div id="remarks">
  ## 備考
</div>

デフォルトでは、元の画像上の文字座標が保存されます。このメソッド呼び出しの前に、以下の行を含む[ユーザープロファイル](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles#user_profiles)を読み込むことで、この動作を変更できます。

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

<div id="see-also">
  ## 関連項目
</div>

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