1. Create a Java LuaState.
2. Call load(), passing an input stream with the contents of ParseXml.lua
3. Call call(0, 0) to run the loaded source chunk.
4. Call getGlobal("parse") to push the parse function on the Lua stack.
5. Call pushString(filename) to push the filename on the Lua stack.
6. Call call(1, 0) to invoke the parse function, passing the file name as
the argument.
You must ensure that everything that is loaded by "require" can be found by
a Lua loader, i.e. is in package.path or package.cpath.
I am not aware of any general sever specific issues that would jump to my
mind.