Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how to extract xml attribute value into CSV file

Highlighted

how to extract xml attribute value into CSV file

New Contributor

Hi All, I am unable to get the XML attribute value using convert record processor. I am using convertrecord processor for converting xml file into csv. My requirement is to extract the values only for required attributes and place it in csv file. Could anyone help me to get the value after conversion.

1 REPLY 1

Re: how to extract xml attribute value into CSV file

Super Guru

@Krishna Murthy

In convertRecord processor define xml reader and csv writer controller services.

In CSV writer controller service define avro schema only the required fields you need to be in csv file.