My class adds a 0x to the number indeed. This is to avoid any mistake by anyone having a look at the XML and accidentally taking 0010 to be decimal 10 instead of hexadecimal 10 (16). So you'll get 0x10 in the XML instead of 10.