Re: XHTML Mime type
For example, xml only recognises 6 character entities which don't include so these would be replaced with the numeric references (or literal character if you go the UTF-8 route).
Mhh, I justed tested it and works perfectly with application/xhtml+xml as mime type. Plain XML probably doesn't have all those entities; but XHTML does for sure.