cleanup TOXML object