A Man will always have the XY chromosomes even if he is made to "look like" a woman!
A Woman will always have the XX chromosomes even if she is made to "look like" a man!
AND
That, as they say, Is That!
'Nuff Said!
Unfortunately its not that simple. Check out androgen insensitivity syndrome, Klinefelter syndrome, and XYY syndrome.