Gopi
Gopi

Reputation: 105

How to split xml blob content in database into multiple files based on tag in mule

How to split xml file into multiple files based on a tag in xml file using mule

In xml we have <EOF> data based on <EOF> we need to chunk the xml.

Upvotes: 0

Views: 170

Answers (2)

You can do something similar to:

<splitter expression="#[xpath('//EOF')]" />

That would generate many messages one for each EOF tag in your XML. Depending on the structure you may need to fix the Xpath expression to be more precise.

Upvotes: 1

Related Questions