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

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels