Use function SerializerFactory.getDefaultSerializationProperties('EDI/X12'); in Mirth Connect #6390
Replies: 1 comment 5 replies
-
If I understand correctly, your XML is invalid in the database. That |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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