-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels