Skip to content

Composite element should not be present #2

@weautus

Description

@weautus

Hi,

First thanks for this library, it really help me for my actual work.
I'm not 100% sure of my subject here and I don't have access to the ISO-TS 20625-200 norm, so I let you evaluate my remark.

I generated an XML file from an INVOICE 01B and according to me, there is some non-necessary elements.
I'll take the NAD for example.

In my input file:
NAD+SU+1234567890123::9'

With your library:

<S_NAD>
   <D_3035>BY</D_3035>
   <C_C082>
      <D_3039>5400110000030</D_3039>
      <D_1131 />
      <D_3055>9</D_3055>
   </C_C082>
</S_NAD>

According to the EDIFACT norm, the data element D_1131 isn't mandatory but conditional (https://www.truugo.com/edifact/d01b/invoic/)
So according to me, the tag should not be present.
There is a lot of similar cases and if I try to validate your generated file with XSD I found, I've got issues because according to that XSD, this is not a mandatory element.

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