Member since
10-03-2017
14
Posts
1
Kudos Received
0
Solutions
02-23-2019
10:53 AM
You can use this NIFI Groovy processor that converts XML to CSV or AVRO https://github.com/maxbback/nifi-xml
... View more
07-01-2018
01:59 PM
Hi XML tree is a complex as they are hierarchical and you most likely want a flat structure for easier access of the data. I just wrapped up the second article of this yesterday, and the code for this is available at GitHub link included in the article. http://max.bback.se/index.php/2018/06/30/xml-to-tables-csv-with-nifi-and-groovy-part-2-of-2/ The article describe the problem and is providing an implementation for the conversion from XML to CSV by flattening out the XML files, my example XML is flattened out into 4 tables, all depends on how many branches you have that is of the type 1 to many. /Max
... View more