I also wonder if we could add a quick test to FoxmlDocument to test this out? Pass a bad datastream and see if the exception is thrown.