web stats
Loop thru xml with multiple msgs - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2011, 09:43 AM
jpaulson jpaulson is offline
Mirth Newb
 
Join Date: Feb 2011
Posts: 12
jpaulson is on a distinguished road
Default Loop thru xml with multiple msgs

I have created 2 channels. The second channel will have a source of channel reader and then write to the database. Cant figure otu how to write my first channel. Its source will be an XML file what contains multiple messages. I want it to route to the second channel after every message.
so, for example xml:

<patientMSG>
<patientid>1</patientid>
<patientname>jane</patientname>
<patientcity>springfield</patientname>
</patientMSG>
<patientMSG>
<patientid>2</patientid>
<patientname>john</patientname>
<patientcity>brownsville</patientname>
</patientMSG>

so my first channel will route to the second channel 2 times, once for every patientMSG outer tag. How do I code for this?
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 02:28 AM.


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