Question: how to generate xdl file?
Answer: On the File menu in SQL Server Management Studio, point to Open, and then select File. In the Open File dialog box, select the . xdl file type in the Files of type box. ...  Select the deadlock file you want to print, and select Open. On the File menu, select Print.