In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic XML input

Genevieve
8 - Asteroid

Apologies if this already answered.

 

I am trying to read a bunch of XML files (400+). They are all saved in the same directory. However the dynamic input tool does not work as there are variations in schemas between the files. I have used a batch macro found on the Community. It seems to only grab the top file in the directory.

After inputing all the files I need to parse the outer XML to access the data needed.

I think the problem is in the macro. Could you help me find where I got it wrong?

 

 

2 REPLIES 2
MichalM
Alteryx Alumni (Retired)

@Genevieve 

 

I'd update the macro to read the xml in as a csv with no delimiter (see below) and then use the XML Parse tool to get what you need out of the outer XML. The way the batch macro works will replicate the same process for each of your XMLs and then union the output on the back of it.

 

 xml-batch.png

Genevieve
8 - Asteroid

Thank you @MichalM .

 

Your suggestion of CSV put me on the path to the solution.

Labels
Top Solution Authors