Alteryx Designer Desktop Discussions

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

XML Parsing

dholder15
7 - Meteor

If I have to parse for each record with the two titles how can I do that? I understand using the child name to specify but it only works for one. I feel like I'm missing something. 

 
1 REPLY 1
Yoshiro_Fujimori
15 - Aurora

Hi @dholder15 ,

 

The persons in your data does not seem to have two titles.

 

Your original data

 

<PersonNm>TP Gent</PersonNm>
<TitleTxt>EXECUTIVE DIRECTOR</TitleTxt>

<PersonNm>Cam Payne</PersonNm>
<TitleTxt>ASSISTANT DIRECTOR</TitleTxt>

<PersonNm>Tyler Nubume</PersonNm>
<TitleTxt>EXECUTIVE DIRECTOR</TitleTxt>

 

Do you mean you want to add another title to a person?

If so, you may want to put then in one element, like this;

(I added a root element to deal with it as an independent XML document.)

 

 

<Document>
    <Person>
        <PersonNm>TP Gent</PersonNm>
        <TitleTxt>EXECUTIVE DIRECTOR</TitleTxt>
        <TitleTxt>ROCK SINGER</TitleTxt>
    </Person>
    <Person>
        <PersonNm>Cam Payne</PersonNm>
        <TitleTxt>ASSISTANT DIRECTOR</TitleTxt>
    </Person>
    <Person>
        <PersonNm>Tyler Nubume</PersonNm>
        <TitleTxt>EXECUTIVE DIRECTOR</TitleTxt>
    </Person>
</Document>

 

 

If you read this with Input Data tool, the output would be as below.

PersonNmTitleTxtTitleTxt_2
TP GentEXECUTIVE DIRECTORROCK SINGER
Cam PayneASSISTANT DIRECTOR 
Tyler NubumeEXECUTIVE DIRECTOR 

 

I hope this helps.

Yoshi

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels