Disable listeners while XML being loaded

I am implementing several listeners in my application, but they seem to slow my XML load function significantly…I would like to disable my listeners until the load is completed…how would I go about doing this?