jzhardy
Active User
Joined: 31 Oct 2006 Posts: 139 Location: brisbane
|
|
|
|
I have the following data structure:
Code: |
01 WS-XML-0174-00. *>DATA
03 WS-017400800-07 PIC X(0010). *>STMT_PRD_START(NR)
03 WS-017400800-08 PIC X(0010). *>STMT_PRD_END(NR)
...
03 WS-XML-0174-01. *>ACC_DTLS
05 WS-XML-0174-02-X OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-02-SIZE. *>RP_DTLS
07 WS-017400815-07 PIC X(0050). *>RECV_PYE_NAME(R)
07 WS-XML-0174-03. *>CASE_DTLS
09 WS-017400815-09 PIC X(0010). *>C_DTL_ITM_DATE(R)
09 WS-017400815-10 PIC X(0255). *>C_DTL_ITM_DES(R)
05 WS-XML-0174-05-X OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-05-SIZE. *>PNAP
07 WS-017400828-08 PIC X(0016). *>STRT_PNAP_BAL(R)
...
05 WS-XML-0174-07-X OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-07-SIZE. *>NAP
07 WS-017400830-08 PIC X(0016). *>STRT_NAP_BAL(R)
...
03 WS-XML-0174-11. *>EC_DTLS
05 WS-017400822-13 PIC X(0016). *>EC_DTL_ITEM_BAL(NR) |
when testing XML GENERATE with the following option :
Code: |
SUPPRESS EVERY CONTENT WHEN ZERO OR SPACE
EVERY ELEMENT WHEN ZERO OR SPACE |
i get the following :
Code: |
<DATA>
<STMT_PRD_START>20240720</STMT_PRD_START>
...
<ACC_DTLS></ACC_DTLS>
...
</DATA> |
It's not entirely clear to me why node <ACC_DTLS> is not being suppressed, whereas <EC_DTLS> is ...
any suggestions appreciated |
|