the recursive script for xml in sql