Hello DFDL Community,

I am creating a DFDL schema for exe files.

Exe files are in littleEndian.

One field is called imageBase. It is a long long value. (long long is 8 bytes)

Would it make most sense to output that field simply as hex?

If I output it as hex, would it be better to output the hex in littleEndian:

<xs:element     name="Image_Base_in_hex"
                       type="xs:hexBinary"
dfdl:length="8"
dfdl:lengthKind="explicit"
dfdl:lengthUnits="bytes"
dfdl:byteOrder="littleEndian"
/>

Or, would it be better to output the hex in bigEndian:

<xs:element     name="Image_Base_in_hex"
                       type="xs:hexBinary"
dfdl:length="8"
dfdl:lengthKind="explicit"
dfdl:lengthUnits="bytes"
dfdl:byteOrder="bigEndian"
/>

If I output it in bigEndian:

<Image_Base_in_hex>0090000000004000</Image_Base_in_hex>

it is easier to copy the hex in that element and find the hex in my hex editor.

What do you recommend?

Reply via email to