Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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.


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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.