Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
The Expert Exam is now live online! Read about the specifics and what it took to bring it to life in the blog by our very own Elizabeth Bonnell!
SOLVED

XML Parsing Help !

Highlighted
8 - Asteroid

Hi All,

 

I am using an XML input and trying to extrac the child values. Please refer to the screenshot below :

 

 

Gallop_0-1576835679494.png

 

I am getting the desired parsed output but for one column called label.

 

This is the xml structure for this field

 

Gallop_2-1576835813541.png

 

Below is the output

 

Gallop_3-1576835922716.png

 

I suspect it maybe due to there being 2 tags and the input tool not recognizing the same.

 

Will be great if anyone has faced this issue previously and guide.

 

Thanks in advance.

Highlighted
Alteryx
Alteryx

Hi @Gallop ,

can you share a piece of your data?

 

 

Highlighted
6 - Meteoroid

Hello, 

 

Would be nice to see to see the Outer Xml, to see what Alteryx recognizes. Can you tick the option to return Outer xml?

 

All the best,

Konstantin 

Highlighted
Alteryx
Alteryx

Hi @Gallop ,

 

On your input data configuration select Return Outer XML, this allows to get one column called Outer_Label, then use the XML parse tool

 

 https://help.alteryx.com/2019.4/XMLParse.htm

 

To get the fields of language

 

Let me know if this helps

 

Best,

Vianney

Best,
Vianney
Highlighted
8 - Asteroid

Please find the sample attached

Highlighted
8 - Asteroid

Gallop_0-1576839606029.png

 

Outer xml 

Highlighted
Alteryx
Alteryx

No issue for me with this configuration:

 

WilliamR_0-1576839639250.png

 

(If this post helps, then please consider it as the solution to help the other members find it more quickly).

Highlighted
8 - Asteroid

Gallop_0-1576840206583.png

 

Getting an error

Highlighted
8 - Asteroid

The XML has lot of tags and is a large file.

 

Unable to share the full file, but label is tagged inside other tags.

 

Thanks

Highlighted
Alteryx
Alteryx

can you share the configuration that you used for the XML Parse tool?

Best,
Vianney
Labels