Fixed export xml when XMLElement inside a CharacterStyleRange.