Nice and DRY! Some useful XML helpers in here, wonder if they could be pulled out into utility modules (like the Direction one) for use in future apps.