I’m looking at the output of a tool, dumping a database table to XML. One of the columns is named 64kbit , the tool encodes that as such, and I need to replicate that:
<_x0036_4kbit>0</_x0036_4kbit>
Is this some sort of standard encoding ? Where can I learn more about it ?
Well, it doesn’t seem to be too standard, but XML explicitly disallows numbers (and some other things) as the first character of an element name:
This encoding here just kinda escapes the first character if it doesn’t fit that requirements. It uses the hexadecimal value of that character.
_x0036_obviously corresponds to hexadeximal0x36which is54in decimal and represents the digit6.