<br><font size=2 face="sans-serif">What is the DFDL infoset value for a
hexBinary type element?</font>
<br>
<br><font size=2 face="sans-serif">Our doc says an element of type hexBinary
has a value member in the infoset whose type is a hexBinary, but what is
a hexBinary anyway?</font>
<br>
<br><font size=2 face="sans-serif">Consider this 12 bytes of data, dumped
here as hex: 003100320033004100420043</font>
<br>
<br><font size=2 face="sans-serif">If that's a string in UTF-16BE encoding,
it looks like &quot;123ABC&quot;</font>
<br>
<br><font size=2 face="sans-serif">It is 12 bytes long. </font>
<br>
<br><font size=2 face="sans-serif">Suppose we describe this using this
DFDL:</font>
<br>
<br><font size=2 face="sans-serif">&lt;element name=&quot;a&quot; type=&quot;hexBinary&quot;
length='12' &nbsp;/&gt;</font>
<br>
<br><font size=2 face="sans-serif">As I understand it, this is correct
XSD in that the length of a hexBinary is always specified as the number
of 'octets' of the binary data, not characters. </font>
<br>
<br><font size=2 face="sans-serif">Now, the contents of the basic XML infoset
for an element matching this schema are these 24 characters: &nbsp;&quot;003100320033004100420043&quot;.
This is because the XML infoset has no idea what this string is because
it is not schema aware. </font>
<br>
<br><font size=2 face="sans-serif">An XML document corresponding to this
might look like:</font>
<br>
<br><font size=2 face="sans-serif">&lt;! xml version='1.0' encoding=&quot;UTF-16BE&quot;
!&gt;</font>
<br><font size=2 face="sans-serif">&lt;a&gt;003100320033004100420043&lt;/a&gt;</font>
<br>
<br><font size=2 face="sans-serif">So, the question is......</font>
<br>
<br><font size=2 face="sans-serif">What are the contents of the DFDL Infoset
for a hexBinary like this? Same 24 characters? or 12 'octets' of data?</font>
<br>
<br><font size=2 face="sans-serif">This is essentially the answer to the
question &quot;what IS a hexBinary?&quot; or maybe &quot;what is a hexBinary
in the PSVI other than just a string?&quot;</font>
<br>
<br>
<br><font size=2 face="sans-serif">...mikeb</font>
<br>