Error handling for haxe inlined in xml