I've not used ParseXmlFile. For these types of import I normally use AddFileToArea and then ParseXmlArea. Whether that would make any difference for you, I don't know.
I would like to know what BackgroundHALShouldPause does, and how to use it. While it's listed in the HAL Primitives report, it is not used in source code and it doesn't appear in the LMS HAL...