XML error "Content is not allowed in prolog" #6168
Unanswered
apple162883
asked this question in
Q&A
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using Mirth Connect 4.2.0 to read an XML File.
The Source Connector Inbound is set to XML. Using Batch Processing and splitting the Batch by Element Name
The inbound file contains UTF 8 BOM {ISO-8859-1} character
{<?xml version="1.0" encoding="UTF-8">}
in the first line which causes it to throw
"Content is not allowed in prolog" error.
I tried
return message.replace(/\uFEFF/g,'') in the Preprocessor but it seems code does not reach upto that line and throws error.
Any suggestions to bypass or remove this character so I can parse the XML File
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions