The DOM CLOSE XML command frees up the memory occupied by the XML object designated by elementRef.
If elementRef is not an XML root object, an error is generated.
If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0.