title: XML xs:int hexadecimal value
body: <p>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?</p>
  
  <p>For example, if the XSD says:</p>
  
  <pre><code>&lt;xs:element name="value" type="xs:integer" use="required" /&gt;
  </code></pre>
  
  <p>then I want the XML to be able to say:</p>
  
  <pre><code>&lt;value&gt;0xFF00FF&lt;/value&gt;
  </code></pre>
  
  <p>or whatever the notation for hexadecimal would be.</p>
  
  <p>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.</p>