Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2261

Optional first element in unordered sequence fails to unparse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • Back End
    • None

    Description

      A user discovered an issue with optional elements inside unordered sequences.  Specifically, when the first element of an unordered sequence has minOccurs="0" and does not have maxOccurs > 1, the unparse attempt will fail with the following error message:

      "Expected element start event for {}x, but received element end event for {}y."

      Attached is a test case demonstrating this behavior.

      Attachments

        1. Book2.dfdl.xsd
          2 kB
          attila horvath
        2. Book2.csv
          0.7 kB
          attila horvath
        3. BE.tdml
          3 kB
          Josh Adams
        4. BE.dfdl.xsd
          3 kB
          Josh Adams

        Activity

          People

            dfthompson Dave Thompson
            jadams_tresys Josh Adams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: