Start Free Trial

Alteryx Designer Desktop Discussions

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

XML not outputting correctly - need to take new line following root, child & subchild

HenpetsGordres1
8 - Asteroid

Hello,

 

I have a workflow which is supposed to output to XML format, but when opened in Notepad, appears like this:

 

HenpetsGordres1_3-1584720646001.png

 

I need to Input this XML in CSV format in Alteryx, which looks this:

 

HenpetsGordres1_4-1584720721042.png

 

I need to format it correctly so that it appears like this in Notepad:

 

HenpetsGordres1_5-1584720816235.png

 

which in turn appears like this as a CSV in Alteryx:

 

HenpetsGordres1_6-1584720876038.png

 

So essentially I think I need to take a new line (new record) every time following every subchild e.g. </calories> as well as the root & child values e.g. <breakfast> & <food>.

 

Is this possible?

 

Many thanks

 

 

 

 

 

 

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

Something like this?

 

DavidP_0-1584784292585.png

 

HenpetsGordres1
8 - Asteroid

Hi David,

 

Many thanks for your efforts. This is almost what I need, it may make it a lot harder but I would like the subchild with values to remain on the same line. So something like this:

 

HenpetsGordres1_0-1584958831894.png

 

I'm not sure if this is possible though?

 

Thanks,
Stephen

 

DavidP
17 - Castor
17 - Castor

Try this version

 

DavidP_0-1584961529531.png

 

DavidP
17 - Castor
17 - Castor

My previous tweak didn't correctly put <breakfast_menu> on it's own line. Here's the same idea but implemented slightly differently to fix that issue

 

DavidP_0-1584965072837.png

 

Labels
Top Solution Authors