title: SQL Server: encoding of hex value in XML?
body: <p>When I dump a hex value into XML output in SQL Server, e.g.</p>
  
  <pre><code>0x103319FF9ABAF2EC14E1432479DA3CDBC8B2DEF8
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>/DNcECEQkcDhcAkP/56jm/XHKQk=
  </code></pre>
  
  <p>This looks like it has been encoded to base64, but I tried different converters and wasn't able to reconvert the second value into the first. Does anyone know how SQL Server encodes the hex value in XML?</p>