0

I have a nifi flow, that consists in introducing values from a xml into a hive table. I need to do that xml evaluation automatically because it has a lot of values.

Right now i'm doing that by introducing all the elements in the xml manually indicating the xpath of each element into evaluatexpath. Each element is passed as an attribute to AttributestoJSON.

What i want to achieve is to pass all elements from that xml as an attribute to AttributestoJSON automatically by reading all the components in the xml.

Wylliam M
  • 25
  • 6
  • Welcome to Stack Overflow. Please take the [tour](https://stackoverflow.com/tour) and also read [How to Ask](https://stackoverflow.com/questions/how-to-ask). Stack Overflow is not a free script writing service. Your own research and code attempts are expected. Edit the question to include your code in a [Minimal, Complete, and Verifiable](https://stackoverflow.com/help/mcve) example. – Theo Jun 13 '19 at 10:01

1 Answers1

2

You likely want to look into a different approach using the ConvertRecord processor with an XML Reader service and a JSON Writer service. This should convert all of your XML into JSON.

Bryan Bende
  • 18,320
  • 1
  • 28
  • 39