Alteryx Designer Desktop Discussions

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

Issue parsing XML file that is a saved as TXT

Wafarian
8 - Asteroid

Hi,

 

I am unable to parse XML file that we received from a server. the file is saved as XXX.xml.txt

 

below is my workflow, config settings and errors.

 

 

 

12 REPLIES 12
Yoshiro_Fujimori
15 - Aurora

Hi @Wafarian ,

 

Thank you for the data. It makes the discussion more effective.

I tried to parse it as below. Please let me know if this is close to your needs.

 

Workflow

Yoshiro_Fujimori_0-1683372011712.png

 

Summarize tool puts the rows into one cell together.

1st XML Parse tool focuses on "Item" tag as you says you don't need data in "Head" tag.

2nd XML Parse tool parses all the tags under "Amount" tag.

 

Output

Yoshiro_Fujimori_1-1683372198991.png

 

 

Wafarian
8 - Asteroid

Hi,

 

wow. thank you very much. that is exactly what I need. by the way, way the aggregation as I didn't quite get it.

 

thanks,

Yoshiro_Fujimori
15 - Aurora

Hi @Wafarian ,

 

I am glad to know you get to the solution.

 

>the aggregation as I didn't quite get it.

You mean the Summarize tool?

 

I used Summarize tool to put the rows all together into one row,

See Alteryx Help: https://help.alteryx.com/20223/designer/summary-processes#string

with each original row separated by new line (represented by "\n"),

so that XML Parse tool can deal with the data as one chunk of XML data.

 

I hope I answered to your question.

Labels