Free Trial

Alteryx Designer Desktop Discussions

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

Excel data to xml conversion - Need help

alt_tush
9 - Comet

Hi,

 

I have below excel records and i want convert this records into define xml format :-

 

Input Data :- 

CustomerIdAccountNumberCustomerBankIdentificationTypeOpneingDate
1101ID001Savings8/1/2019
1102ID001Current8/23/2019
1103ID001Savings9/17/2019
2201ID002Savings1/4/2020
2202ID002Savings2/7/2020
3301ID003Savings3/19/2021
3302ID003Savings3/19/2021
3303ID003Savings3/19/2021
3304ID003Savings

3/19/2021

 

Expected output : 

 

<Customer CustomerId="1" CustomerBankIdentification = "ID001">
<CustomerActions>
       <AddAction>
            <Accounts>
                <Account AccountNumber = "101">
                      <Type>"Savings"</Type>
                      <OpneingDate>2019-08-01</OpneingDate>
                </Account>
                <Account AccountNumber = "102">
                      <Type>"Current"</Type>
                     <OpneingDate>2019-08-23</OpneingDate>
                 </Account>
                 <Account AccountNumber = "103">
                     <Type>"Current"</Type>
                     <OpneingDate>2019-07-17</OpneingDate>
                </Account>
          </Accounts>
      </AddAction>
</CustomerActions>
</Customer>

<Customer CustomerId="2" CustomerBankIdentification = "ID002">
<CustomerActions>
      <AddAction>
           <Accounts>
                 <Account AccountNumber = "201">
                      <Type>"Savings"</Type>
                      <OpneingDate>2020-01-04</OpneingDate>
                 </Account>
                <Account AccountNumber = "202">
                       <Type>"Current"</Type>
                      <OpneingDate>2019-02-07</OpneingDate>
                </Account>
          </Accounts>
     </AddAction>
<CustomerActions>
</Customer>

 

Please assist me how i can create above xml format using alteryx

 

 

4 REPLIES 4
Jay-RDC
8 - Asteroid
alt_tush
9 - Comet

 Hi Jay-RDC,

 

There are so many posts in given link.. do you where i can get exact solution? Any link?

 

I want to create the xml based on the format i mentioned. It is not simply convert the excel data into xml.

 

Thank you for reply :)

apathetichell
19 - Altair

hi! Sorry - but unless you can specify what you are converting your xml for and happen to find someone who can match your schema - there won't be an out of the box solution - you have a fairly specific parent/child syntax - and reading through that thread will probably help you get to what you are trying to do.

 

Keep in mind that you are basically taking a row/column formatted xml (Alteryx) and turning into a semi-structured xml (nested parent/child schema) so it takes some work.

alt_tush
9 - Comet

Hi apathetichell,

 

Yes, there is no out of box solution for this.

Also yes its a semi-structured xml so i have to do some work around or implement some logic in workflow.

I am able to create the workflow and generate the xml what i expected :)

 

Thank you for your assistance :)

Labels
Top Solution Authors