Use function SerializerFactory.getDefaultSerializationProperties('EDI/X12'); in Mirth Connect #6390
Replies: 1 comment 6 replies
-
If I understand correctly, your XML is invalid in the database. That |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using connector type: database reader in channel 1. Read data and DB, input is XML data type. 1 element named DocumentText contains EDI message and I want to convert the value in that element to xml but there is a problem that the ISA.16 field has value > so I can't use this function
SerializerFactory.getDefaultSerializationProperties('EDI/X12');
I hope everyone can help me.
var serializationProperties = SerializerFactory.getDefaultSerializationProperties('EDI/X12');
serializationProperties['elementDelimiter']= "*";
serializationProperties['segmentDelimiter']=">~";
serializationProperties['subelementDelimiter']= ":";
var edi = SerializerFactory.getSerializer('EDI/X12',serializationProperties,null).toXML(msg['documenttext'].toString());
Beta Was this translation helpful? Give feedback.
All reactions