web stats
Mirth Community - View Single Post - Assigning Arbitrary Empty XML Node
View Single Post
Old 05-10-2019, 09:59 AM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,033
agermano is on a distinguished road

Each approach has different benefits and drawbacks. You might have to use multiple approaches in a generalized function depending on initial state and desired outcome.

For example, what do you do when a parent, or more critically a segment, doesn't exist? By default new segments will be created at the end of the message. What do you do when existing segments are repeating? Are the repeating segments consecutive? What do you do when existing fields are repeating?

If you have a very strict outcome in mind, you may want to build a new message (using the outbound template) from pieces of the inbound message rather than trying to delete everything you don't need.
Reply With Quote