New stored procedure for xml feed.