<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 "123ABC"</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"><element name="a" type="hexBinary"
length='12' /></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: "003100320033004100420043".
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"><! xml version='1.0' encoding="UTF-16BE"
!></font>
<br><font size=2 face="sans-serif"><a>003100320033004100420043</a></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 "what IS a hexBinary?" or maybe "what is a hexBinary
in the PSVI other than just a string?"</font>
<br>
<br>
<br><font size=2 face="sans-serif">...mikeb</font>
<br>