web stats
empty XML tags - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 02-13-2020, 02:58 PM
anasrallah anasrallah is offline
What's HL7?
Join Date: Dec 2019
Posts: 1
anasrallah is on a distinguished road
Default empty XML tags

how can I make mirth E4X to return an empty xmltag and not a self-closing tag


tmp['MyTag'] = '';

output is
<MyTag />

I want it to output
Reply With Quote
Old 02-14-2020, 07:34 AM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,176
agermano is on a distinguished road

Unfortunately, I don't think this is possible with e4x. You might have to post-process it with something else to convert them.
Reply With Quote
Old 02-14-2020, 12:52 PM
jackwhaines jackwhaines is offline
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 255
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines

Yes, I had to do this for a client that wanted it (against the rules of XML) and it was a pain. It CAN be done though.

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 11:43 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation