Hello folks,

 

Section 11.2.3 of the documentation says that if I use the ISO-8859-1
encoding, all bytes will be preserved. 

So I have a simple text file that has the following text, represented as
hex:



 

Using the following schema, I get the expected xml on parse

 

  <element name="file">

    <complexType>

      <sequence >

        <element name="file_string" type="xs:string" dfdl:lengthKind =
"delimited" dfdl:encoding="ISO-8859-1"/>

      </sequence>

    </complexType>

  </element>

 

But when unparsing, one 0D is dropped, and one is converted to 0A as shown
below:



 

What am I missing to actually preserve all bytes?

 

Thanks,

Mark

 

Mark Kozak

Director of Engineering

Adeptus Cyber Solutions

Adeptus-CS.com

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to