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

XML Parsing Help !

JDong
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.

17 REPLIES 17
WilliamR
Alteryx
Alteryx

Hi @JDong ,

can you share a piece of your data?

 

 

KostjaPwC
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 

VianneyM
Alteryx
Alteryx

Hi @JDong ,

 

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
JDong
8 - Asteroid

Please find the sample attached

JDong
8 - Asteroid

Gallop_0-1576839606029.png

 

Outer xml 

WilliamR
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).

JDong
8 - Asteroid

Gallop_0-1576840206583.png

 

Getting an error

JDong
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

VianneyM
Alteryx
Alteryx

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

Best,
Vianney
Labels