Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract data and create delimited file from a XML feed

HI,

I am having problem in extracting data from a XML file. Below is the use case

 

input data:

<AB>ABC012</AB>

<CD>

<CD1>12345</CD1>

<CD2>MF156</CD2>

</CD>

<CD>

<CD1>98765</CD1>

<CD2>MF558</CD2>

</CD>

</DE>

 

Expected Output:

record#1: ABC012~12345~MF156

record#2: ABC012~98765~MF558

 

Basically i would like to extract data for the tags where the tags are being repeated. In the above case tag under <CD> being repeated twice.

 

Please advise.

 

Thanks,

Brat

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks Sujay. Able to extract the data.

View solution in original post

2 Replies
Sujay1
Creator
Creator

hi @BratB  please see the below screenshot it gives ur desired result. 

 

0683p000009M7tn.png

Anonymous
Not applicable
Author

Thanks Sujay. Able to extract the data.