General Discussions

Discuss any topics that are not product-specific here.
SOLVED

Need help in parsing the XML

Ashwin_99
6 - Meteoroid

 

 

Hi All,

 

need a quick assistance on a small question.

 

I have attached a hierarchy image and xml text, 

 can i get the output in following format using alteryx.

ParentChild 1Child 2
JOHNRossAmy
JACKThomasRoss
RockRockNull

the node shown in the image will be dynamic in nature so there will be multiple child of one parent and may be no child of a parent.

 

please do let me know in case you need more info.

 

Thanks in advance.

Screenshot 2024-04-13 040242.png

 

 

 

 

 

 

 

 

 

 

 

6 REPLIES 6
caltang
17 - Castor
17 - Castor

Consider this post: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/XML-parse-comment-or-processin... 

 

It should help.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

Since I don't have the full XML, I'll just do something simple here:

image.png

 

Hope this helps @Ashwin_99 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Ashwin_99
6 - Meteoroid

Hi Calvin,

 

Apologies for not giving the full XML.

Please refer attached updated xml, and updated hierarchy please see below image,

as i can see in your workflow you had read the xml by csv but can we do it by reading it only in xml form...? 

for_calvin.png

Expected Output:

ParentChild 1Child 2
JOHNRossAmy
JOHNKaneAsh
JACKThomasRoss
RockRockNull

 

Thanks for the Support,

Regards,

Ashwin_99.

 

caltang
17 - Castor
17 - Castor

Solved with XML:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Ashwin_99
6 - Meteoroid

Hi Calvin,

 

Thanks, for the reply but its not the same as i expected.

 

Regards,

Ashwin.

caltang
17 - Castor
17 - Castor

Woops! My bad. Forgot to group them dynamically. This should do it:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels