Announcement

Collapse
No announcement yet.

Loop thru xml with multiple msgs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
Working...
X