Moved all of the rapidxml specific stuff in createTiles in mapdata into xmlparser