Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Merge XML files of similar structure

HenpetsGordres1
8 - Asteroid

Hi,

 

I would like to merge two xml files with a similar structure i.e. similar root and child, but differing subchild/body.

 

e.g. File 1 appears like this:

HenpetsGordres1_0-1584636648814.png

 

File 2 appears like this:

HenpetsGordres1_1-1584636678408.png

 

header, entries & entry are similar across both files, I want to merge the body (1,2,3,4, 5, 6) so that Output (File 3), appears like this:

HenpetsGordres1_2-1584636725796.png

 

I have also included my attempt (MergeXML), I can't figure out how to use the count in 1 to remove those lines. But there are probably better ways to approach the issue.

 

Many thanks

 

1 REPLY 1
DavidP
17 - Castor
17 - Castor

I couldn't load your input files as XML - something's not right with the structure.

 

Instead, I loaded each file as CSV with delimiter set to \0 and unchecked 1st row contains field names and tried another method to merge them, which is a bit of a hack.

 

See below and workflow attached.

 

DavidP_1-1584658303395.png

 

Labels