Hello DFDL community, My input is a single UTF-8 string. Parsing the input generates the expected XML document, but unparsing the XML results in a totally different string. Below is a graphic showing the input, parsing results, and unparsing results. Under it are the actual hex bytes. Note how the bytes for the input are very different than the bytes for the unparse results. Why such differences between the input and the parse output? At the bottom is my DFDL schema. /Roger
[cid:[email protected]] <xs:element name="UTF-8"> <xs:complexType> <xs:sequence> <xs:element name="string" type="xs:string" dfdl:encoding="utf-8" /> <xs:element name="length" type="xs:integer" dfdl:inputValueCalc="{ fn:string-length(../string) }" /> </xs:sequence> </xs:complexType> </xs:element>
