Hello DFDL community,
My input is this:
Hello, World Blah
Broccoli
3ABC
I want it parsed to this:
<input>
<A>Hello, World</A>
<B> Blah</B>
<C>Broccoli
3ABC</C>
</input>
That is, the first field is exactly 12 characters. The second field extends up
to the newline. The third field is the rest.
Below is my DFDL schema. It produces this result:
<input>
<A>Hello, World</A>
<B> Blah</B>
<C></C>
</input>
along with a warning message saying that a bunch of bytes remain.
Why do I get that result instead of the desired result? /Roger
<xs:element name="input">
<xs:complexType>
<xs:sequence>
<xs:element name="A" type="xs:string"
dfdl:lengthKind="explicit"
dfdl:length="12"
dfdl:lengthUnits="characters" />
<xs:element name="B" type="xs:string"
dfdl:lengthKind="delimited"
dfdl:terminator="%NL;" />
<xs:element name="C" type="xs:string"
dfdl:lengthKind="pattern"
dfdl:lengthPattern=".+?(?=$)" />
</xs:sequence>
</xs:complexType>
</xs:element>