Hi, 

Could someone please provide me the syntax for reading the XML payload with
only the relevant tags. My input XML contains data as below:

<PricePlans>
<Header>
 .......
</Header>
<Body>
 <customer>
 ....
 </customer>
 <customer>
 ....
 </customer>
 <customer>
 ....
 </customer>
</Body>
</PricePlans>

I need to split the input XML and do custom processing for each individual
customer. The XML after splitting should look as below i.e., from the entire
XML i should split only the 'customer' tags contained in the Body and the
non-body tags should remain untouched and added to the output XML. 

<PricePlans>
<Header>
 .......
</Header>
<Body>
 <customer>
 ....
 </customer>
</Body>
</PricePlans>


Any thoughts, please share.

Thanks,
Kalyan



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-read-XML-Payload-tp5773337.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to