Question: how to open xd files?
Answer: In XD, select File > Open. Navigate to the required folder, select an . ai file, and open in XD. ... 
To open the file in XD (on Mac only), drag the Ai file over the XD icon.
Right-click the Illustrator file and select Open with > XD from the submenu.