In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

XML Output to create based on no of records available in input file

Myusrename001
8 - Asteroid

Team,

This is basic input data that i wanted to convert to xml format based on no of records available on dataset, on below example - we have 2 records.

 

<?xml version="1.0" encoding="UTF-8"?>
<AccountNo>
<Branch>
<AccountType>

 

Lets say we have a records lie this showing separately on dataset  

AccountNo - 1234 & 2345
Branch - abc & bcd
AccountType D & C

 

The output should create like this

<?xml version="1.0" encoding="UTF-8"?>
<AccountNo>1234</AccountNo>
<Branch>abc<\Branch>
<AccountType>D<\AccountType>

------------------------------------------------- (end or space)

<?xml version="1.0" encoding="UTF-8"?>
<AccountNo>2345</AccountNo>
<Branch>bcd<\Branch>
<AccountType>C<\AccountType>

------------------------------------------------- (end or space)

 

Can anyone guide me please. 

Thanks ! 

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @Myusrename001,

I've got a basic workflow which can convert your input to your output:

IraWatt_0-1652258678842.png

If you have any questions make sure to ask :)

HTH,

Ira

 

Myusrename001
8 - Asteroid

Thanks so much @ IraWatt 

The solution works perfect.  

IraWatt
17 - Castor
17 - Castor

Awesome ! no worries @Myusrename001  

Labels
Top Solution Authors