Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Need help to Extract data: Input as multiple .XML file, Output as .yxdb file

ibrahimkhalil
6 - Meteoroid

G'Day Everyone,

I'm a Alteryx learner.

Trying to extract data from .xml file to a .yxdb file.

I'm trying but unable to configure Input data and XML Parse to get desired data.

Please have 2 attachments for input and output.

 

Thanks in advance.

 

Regards,

Ibrahim

2 REPLIES 2
danilang
19 - Altair
19 - Altair

G'day @ibrahimkhalil 

 

Here's a workflow that generates your 2 output .yxdb files, one flat with one record per row as per your sheet 1 and the other transposed.  The trick when dealing with .xml files is to parse them incrementally starting at the highest level and work your way downward.  The various Select tools are there to remove unneeded higher level xml strings to stop the memory requirements of the workflow from exploding.

 

Solution.pngNote: the workflow expects the input file to be in the same directory and writes the 2 outputs there as well.

 

Dan

ibrahimkhalil
6 - Meteoroid

@danilang, Many thanks mate. Its working perfectly.

I need to learn how you build those steps.

Labels