xml apply