Please see attached script and XML. This was originally built to handle a JEHEADER ->JELINE structure with one JEHEADER per file. Got a new file for testing today, and it had multiple instances of JEHEADER -> JELINE. So Now, I have data I need to inject into JELINE from JEHEADER from only the current JEHEADER->JELINE.
There are five instances of JEHEADER->JELINE in this attached XML and the data I am injecting from the headers get injected 5 times on each JELINE.
So how do I stay on only the current JEHEADER -> JELINE?
If someone could take a look it would be really helpful