Tipworld -> XML
Hex or Decimal Entity Refs
When using character references, you have the option of specifying the character using a decimal or hexadecimal number. Recall that you can embed a character reference in XML using a & character, followed by a number, and terminated with a ;. If the reference begins with &#x, the digits provide a hexadecimal representation of the character's code. If it begins just with &#, the digits provide a decimal representation of the character's code.