XML xs:int hexadecimal value

Viewed 17041

I want to store a number in an XML file with type of or another simple integer type, but allow the user to enter the number in a hexadecimal format. Does the XML standard allow for this as I can't find anything relevant?

For example, if the XSD says:

<xs:element name="value" type="xs:integer" use="required" />

then I want the XML to be able to say:

<value>0xFF00FF</value>

or whatever the notation for hexadecimal would be.

Obviously I can try it but that only proves support in one particular implementation, not whether it's a standard. I don't particularly care whether saving to XML loses the base.

4 Answers
Related