Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #37: Parsing a Raw XML File

Nicholas_Bignell
8 - Asteroid
 
LindaLo
8 - Asteroid

Done!

jfone
8 - Asteroid
 
Carlithian
11 - Bolide
11 - Bolide
 
helencairns
7 - Meteor

my attempt - first time using this tool

Ellie_P
8 - Asteroid
 
mceleavey
17 - Castor
17 - Castor

Well, that was fiddly but I got there. Every time I parse XML I feel like I'm getting into an inception situation...

 

Spoiler
Workflow:

mceleavey_0-1582893401713.png

Parsed the root from the top level XML field, then parsed the root and child from the billing and shipping sections. Dropped unwanted fields, dynamically renamed to provide the prefix and smooshed them back together using the multi-join tool.

Pro tip: When you want to ensure you have all the required columns and have them in the same order, put a select tool on the result, un-check the "unknown" box, then copy and paste that onto your output. This will show you the missing columns and will put the columns in order.

M.



Bulien

PangHC
12 - Quasar
 
mpennington
11 - Bolide

Solution attached.

 

Spoiler
MP37.png
aazimh
8 - Asteroid

This was super helpful in understanding how the XML Parse tool works - will definitely make me less likely to run away from any XML tasks in the future!