Or maybe I am wrong in the above. Just realized that I would expect
you to get an error when you call "require", as "require" is not in
_ENV. But you say the error happens later.
Sorry about that confusion. Require is not a problem since I also do local require = require before assigning _ENV=M. The error in the 3rd case is when require("LuaXml_lib") is called. It says it cannot find the specified procedure.