My Input Structure
<?xml version="1.0" encoding="utf-8"?>
<Root>
<Headers>
<HDR>3456</HDR>
<Marble>Black</Marble>
</Headers>
<Detail>
<Load>250kg</Load>
<Size>44</Size>
</Detail>
<Trailer>
<Print>A1</Print>
<ID>W234</ID>
</Trailer>
</Root>
My Outpuut Should look like below
3456;Black
250kg;44
A1;W234
Anyone has any input please share with the code to achieve above Requirement.
Request clarification before answering.
Hi Zaheer
You have a couple of options here:
However, if your input document is as short as you show here, you can simply generate the whole thing in a single Content Modifier that extracts the values using XPath and generates the CSV payload:


Here's the body expression:
${property.HDR};${property.Marble}
${property.Load};${property.Size}
${property.Print};${property.ID}Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zaheer
Did you use XmlUtil.serialize option
Here is a good documentation I found pl check and review if this works?
https://gist.github.com/magnuspalmer/12280bce85dc702714cf
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.