web stats
DatabaseReader query returning "For XML" for one column - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2018, 09:01 AM
kregulapati kregulapati is offline
Mirth Newb
 
Join Date: Oct 2018
Posts: 6
kregulapati is on a distinguished road
Exclamation DatabaseReader query returning "For XML" for one column

hi,
i am new to mirth ocnnect and i have a database query which is returning one COlumn as ForXML which is encoded into (<, >, etc.). how to decode and show as regular xml for the source?

currently my source is showing as
<result>
<patient_firstname>Tommy </patient_firstname>
<diagnosis>&lt;DiagnosisCode&gt;A00&lt;/DiagnosisCode&gt;&lt;DiagnosisCode&gt;A01&lt;/DiagnosisCode&gt;&lt;DiagnosisCode&gt;A02&lt;/DiagnosisCode&gt;</diagnosis>
</result>

i wanted it to transform as
<result>
<patient_firstname>Tommy </patient_firstname>
<diagnosis>
<DiagnosisCode>A00</DiagnosisCOde>
<DiagnosisCode>A01</DiagnosisCOde>
<DiagnosisCode>A02</DiagnosisCOde>
</diagnosis>
</result>


Please help.
Reply With Quote
Reply

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 10:48 PM.


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