title: How to Process XML Data using Jolt transformation in Apache Nifi
body: <p>I have a XML:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;Header&gt;
  &lt;ID&gt;1&lt;/ID&gt;
  &lt;Name&gt;abcd&lt;/Name&gt;
  &lt;/Header&gt;
  &lt;Category&gt;
  &lt;CategoryID&gt;1&lt;/CategoryID&gt;
  &lt;Name&gt;abc&lt;/Name&gt;
  &lt;SubCategory&gt;
  &lt;SubID&gt;10&lt;/SubID&gt;
  &lt;Type&gt;A&lt;/Type&gt;
  &lt;/SubCategory&gt;
  &lt;SubCategory&gt;
  &lt;SubID&gt;11&lt;/SubID&gt;
  &lt;Type&gt;B&lt;/Type&gt;
  &lt;/SubCategory&gt;
  &lt;/Category&gt;
  &lt;Category&gt;
  &lt;CategoryID&gt;2&lt;/CategoryID&gt;
  &lt;Name&gt;def&lt;/Name&gt;
  &lt;SubCategory&gt;
  &lt;SubID&gt;10&lt;/SubID&gt;
  &lt;Type&gt;A&lt;/Type&gt;
  &lt;/SubCategory&gt;
  &lt;SubCategory&gt;
  &lt;SubID&gt;11&lt;/SubID&gt;
  &lt;Type&gt;B&lt;/Type&gt;
  &lt;/SubCategory&gt;
  &lt;/Category&gt;
  </code></pre>
  <p>How to transform this XML into JSON using JoltTransformRecord in apache nifi. I want to extract Each Subcategory Data with CategoryID from xml.</p>
  <p>Any help in this issue will be greatly appreciated.</p>
  <p>Thank You!</p>