{
HEADER
[{LINE ITEM}]
}
So a repeating set of header records with one or more line items. If you want to break this into individual messages, you should be able to just iterate over the headers with CONTINUE/SUPPRESS like normal, right?
However, with XML, it seems that the CONTINUE command does not actually send a message, nor does SEND. It just appends on to one message, so if you have a scenario where your data looks like this:
HEADER1
LINE1
LINE2
LINE3
HEADER2
LINE1
Instead of getting the following two messages:
HEADER1
LINE1
LINE2
LINE3
HEADER2
LINE1
You get:
HEADER1
LINE1
LINE2
LINE3
HEADER2
LINE1
LINE2
LINE3
Not only do you not get two messages, the second header has the leftover records from the first…
Looks like a bug, but I can’t think of another simple way to split these XML files into individual messages.
Has anyone had any experience with this?