Breeding with a ditto is easy! In regards to your situation, the outcome of your ditto and Xatu will be a Natu. See Ditto is genderless so when breeding with ditto the eggs with be the first stage of the other parent Pokemon (which is Xatu in your case).