I have opened a lot of large XML using the store procedure sp_xml_preparedocument, and I close the tab on SSMS without calling sp_xml_removedocument
sp_xml_preparedocument
sp_xml_removedocument