Need Full Iterated Header while parsing nested XML to CSV format.
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rajendraabanawe
5 - Atom
‎03-07-2024
09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have got a complex XML which is in nested format and I am looking to convert it to csv format, however I have got some workflows which pulls headers and its corresponding values which is great.
But my requirement is I need to form headers which will iterate over xml on all nodes and will form something like "[Parent]+[Child1]+[Child2]+[Child3]".
So if My [Parent] = "FullForm" , [Child1] = "Ref", [Child2] = "Txn", [Child3] = "Val1", so my Header would be "FullForm_Ref_Txn_Val1", currently I get only "Val"
Labels:
- Labels:
- Output
- Transformation
- Workflow
2 REPLIES 2
15 - Aurora
‎03-07-2024
09:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you share some example data and a desired output please. It'll be easier to help you
Ollie
‎03-07-2024
10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks for your response Ollie.
Sure, see below xml format:
<RcncltnCtgrs>
<RptgRqrmnt>
<RptgTp>TWOS</RptgTp>
<Pairg>UNPR</Pairg>
My expected header is :
RcncltnCtgrs.RptgRqrmnt.RptgTp
RcncltnCtgrs.RptgRqrmnt.Pairg
My expected header is :
RcncltnCtgrs.RptgRqrmnt.RptgTp
RcncltnCtgrs.RptgRqrmnt.Pairg
