Converts a Lua value (table) into properly formatted XML