Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-676

Daffodil throws error when using double new line as terminator

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocking Blocking
    • s10
    • None
    • None
    • None
    • Win 7, Daffodil 0.9

      Set a terminator as a double new line (%NL;%NL. This causes Daffodil to throw an error on the CLI (and JAPI) that I don’t understand:

      Parse Error: Term('%NL;%NL;') - element.MessageHeaders: Remote delimiter found instead of local!

      Part of the DFDL:

      <xsd:element name="TopLevel">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element name="MessageHeaders" dfdl:lengthKind="delimited"
      dfdl:terminator="%NL;%NL;" type="xsd:string"/>
      <xsd:element name="Body" type="xsd:string"/>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>

      Input:

      Date: Sat, 15 Feb 2013 08:54:52 -0500

      This is the body

              jchab Jessie Chab
              james.garriss James Garriss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: