Hello folks..

I am very new to Nifi and trying to see if i can use it to shred XML data.
right now I am reading a file which has different type of xml messages.
Examples below. As a first step i was trying to get an element type
{cashreportdata} and write the whole element to a new file. eventually
different messages will go into different tables.

<Transaction xmlns="DataAPI"><CashReportData Version="3.0"
AppVersion="7.1.60.10976" MessageId="ded6819a-6955-4143-bf40-96c4a4a90c72"
Number="37527" SatNumber="0" TermNumber="1" FromBusinessDate="2013-11-27"
ToBusinessDate="2013-11-27"
TransactionDate="2013-11-27T23:00:02.05875-06:00" EmployeeId="5"
EmployeeName="anuj", <OrderTaxes><TaxByImposition ImpositionName="General
Sales Tax" ImpositionId="1"
Amount="127.2300"/></OrderTaxes></CashReportData></Transaction>

<Transaction xmlns="DataAPI"><DrawerCount Version="3.0"
ApplicationVersion="7.1.60.10976"
MessageId="f1d62b4e-8b35-4979-b5bf-4a313b757000" TransactionId="364"
Number="52794" SatNumber="0" TermNumber="1" BusinessDate="2013-11-27"
TransactionDate="2013-11-28T00:00:08.463" EmployeeId="9" EmployeeName="Anuj
DrawerId="1" <OrderTaxes><TaxByImposition ImpositionName="General Sales
Tax" ImpositionId="1"
Amount="98.6900"/></OrderTaxes></CashInReportData></DrawerCount></Transaction>

i got the below error when using evaluatexpath
[image: Inline image 1]

thisis how the processor was configured.

[image: Inline image 2]
any suggestions on what i could be doing wrong..

Anuj

Reply via email to