Thank you chempat, rosie99,tazzie and Wivenhoe
So James is William in earlier census and Ann E is his second marriage, or as Ann E married a William Shaw by 1901 ?
'William' is James on his marriage to Annie Elizabeth Tipper in 1862 - he is a bachelor so that is his first marriage. He is still married to her when you have him on census in 1901.
This is the information from 1871 in case you can't see the FS link I posted
James Shaw Head 35 bn Dilhorne, Staffordshire
Ann Elizabeth Shaw Wife 35 bn Fenton, Staffordshire
Hannah Shaw Dtr 6 bn Fenton, Staffordshire
Mary Ann Shaw Dtr 4 bn Cheadle, Staffordshire
William Shaw Son 2 bn Cheadle, Staffordshire
Sarah Jane Shaw Dtr 1 bn Fenton, Staffordshire
William Tippen Boarder 19 bn Cheadle, Staffordshire