Ian,
Looking at the 1861 census there is a James Donachie born abt 1847 Kilmarnock. Parents James born abt 1827 Ireland, mother Mary born abt born Eaglesham Renfrewshire. There are quite a few other children as well.
1871 Looks like could be the same James (spelt Donnochie) born abt 1847 Kilmarnock. His wife is called Margaret.
To clarify his fathers name you will need to see the marriage certificate.