The complex parts of these compilers are dedicated to static type inference and checking, something you don't want in Lua, so it's not that hard to extend
match.lua into something more XML oriented. You might want the latest version, though. The latest version compatible with metalua 0.3 should be: