<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NiFi - How to read values from XML and use in putFile flow in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-to-read-values-from-XML-and-use-in-putFile-flow/m-p/222663#M184533</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt; Sorry for the delay in reply. I was focusing on to solve the other bits and took time to come to you. I think I jump too much. Let me take one at a time. For now, I will focus on a single file. I have the below xml file.&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration verbose="false" debugMode="false"&amp;gt;
  &amp;lt;dataFlows&amp;gt;
        &amp;lt;dataFlow configurationId="7c888be1-04ac-11e7-8ab3-3c970ee9aa0b" name="dept" enabled="true"&amp;gt;
            &amp;lt;properties&amp;gt;
                &amp;lt;property name="country" value="it" /&amp;gt;
                &amp;lt;property name="datasource" value="dept" /&amp;gt;
            &amp;lt;/properties&amp;gt;
            &amp;lt;from&amp;gt;
                &amp;lt;filePattern&amp;gt;department_*.csv.gz&amp;lt;/filePattern&amp;gt;
            &amp;lt;/from&amp;gt;
            &amp;lt;to&amp;gt;
                &amp;lt;path&amp;gt;/var/tmp/${country}/${datasource}/csv&amp;lt;/path&amp;gt;
            &amp;lt;/to&amp;gt;
        &amp;lt;/dataFlow&amp;gt;
    &amp;lt;/dataFlows&amp;gt;
&amp;lt;/configuration&amp;gt;

&lt;/PRE&gt;&lt;P&gt;When I try to access path from LookupAttribute, putFile is reading the path as /var/tmp/${country}/${datasource}/csv instead of /var/tmp/it/dept/csv. Do you know the easy way to solve this before I ask further support? Many thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 21:06:44 GMT</pubDate>
    <dc:creator>pchallauk</dc:creator>
    <dc:date>2017-06-22T21:06:44Z</dc:date>
  </channel>
</rss>

