Bengt,

There are cases where destroying before the outer XML object gets destroyed is really necessary or not at all desired. The DataFlex object contains a handle to the XML interface handle. As long as the DataFlex object is there the handle is also there even when it was detached from the document.

I would look at it on a case by case situation. In general destroy when no longer needed.