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

# xmlClose

> xmlOpen が作成した読み取り可能なXML ハンドルをクローズし、メモリを解放してハンドルのリークを回避します。

[xmlOpen](./op-xml-open) が作成した読み取り可能なXML ハンドルをクローズします。

## 必要なパラメータ

* **handle**：XML データへの読み取り可能なハンドル参照。

## 例

```xml theme={null}
<!-- Setting some static XML text -->
<arc:set attr="xml.text" value='<Items><foo>bar</foo></Items>' />
<arc:call op="xmlOpen" in="xml" out="output" >
  <!-- Setting the xml handle on a new item that is passed into a second operation  -->
  <arc:set attr="xml2.handle" value="[output.handle]" />
  <arc:set attr="xml2.map:value1" value="/Items/foo" />
  <arc:call op="xmlDOMGet" in="xml2" out="output2" >
    <!-- Here is where you can execute additional script for the operation that is using the handle -->
  </arc:call>

  <!-- Using the arc:finally keyword to execute the closing of the handle last -->
  <arc:finally>
    <!-- Calling xmlClose to close the handle created by xmlOpen -->
    <arc:call op="xmlClose" in="xml2" />
  </arc:finally>
</arc:call>
```
