Skip to content

comments in wrong spot in generated XML with Level 88 condition #21

Description

@michaelthoward

A minor issue, but be advised ...
If comments are retained in the xml
[through the older Cb2Xml interface or Cb2Xml3.newBuilder().setLoadComments(true)]
then comments in the copybook nicely precede the XML items
However, in the case of a level 88 condition value the comment in XML comes after the condition node

  01  FOO.
  * Code assigned by M 
     03 CODE-NAME             pic 999.
  * comment for Mr Bond
        88 IS-JAMES-BOND value 007.
  * comment for the devil
        88 IS-THE-DEVIL value 666.

generates

<item level="01" name="FOO" position="1" storage-length="5107" display-length="5141" display-position="1">
    <!--* Code assigned by M-->
    <item level="03" name="CODE-NAME" picture="999" position="1" storage-length="3" display-length="3" numeric="COBOL_NUMERIC" display-position="1">
        <condition name="IS-JAMES-BOND">
            <condition value="007"/>
        </condition>
        <!--* comment for Mr Bond-->
        <condition name="IS-THE-DEVIL">
            <condition value="666"/>
        </condition>
        <!--* comment for the devil-->

Observe that <!--* comment for Mr Bond--> comes after the IS-JAMES-BOND condition name

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions