I've heard that there are rare cases of XX males and XY females.
There is a gene that codes for male development (I can't remember the name), and it is usually found on a Y chromosome, but not always, and that it sometimes is found on an X chromosome.
So a simple gene karyotype to determine XX, XY, or something else is not the end of the inquiry.
Still, I don't think the Barr body is the same thing. I'd like to learn more about it. Does it simply determine whether more than one X chromosome is present, regardless of whether the gene for male development is present?
EDIT: The Olympics used to test for the SRY gene, but they stopped in 2000.
http://en.wikipedia.org/wiki/SRYhttp://en.wikipedia.org/wiki/XX_male_syndrome