Help with XML Output Stage
Posted: Tue Sep 06, 2011 6:59 am
Hi Guys,
This is my first attempt at creating an XML file, though i have worked in parsing an XML file earlier.
My input file is as below
I want to convert it to XML stage as below.
I am reading sequential file and passing it to XML output stage. In the derivation of Sequential stage, i am giving the XPATH expressions.
I have given TransactionID as trigger column. In output tab, i have defined a single column as Varchar(999999).
But it is throwing an error as
Can somebody help me with this.
Cheers!!!!
This is my first attempt at creating an XML file, though i have worked in parsing an XML file earlier.
My input file is as below
Code: Select all
TransactionID,TransactionLineNumber,StoreID,ScanType,PLUID
1030104,1,625,2,21155269
1030105,1,626,1,21155270
Code: Select all
<Transaction>
<TransactionID>1030104</TransactionID>
<LineItemDetail>
<TransactionLineNumber>1</TransactionLineNumber>
<StoreID>625</StoreID>
<ScanType>2</ScanType>
<PLUID>21155269</PLUID>
</LineItemDetail>
<TransactionID>1030105</TransactionID>
<LineItemDetail>
<TransactionLineNumber>1</TransactionLineNumber>
<StoreID>626</StoreID>
<ScanType>1</ScanType>
<PLUID>21155270</PLUID>
</LineItemDetail>
</Transaction>
I have given TransactionID as trigger column. In output tab, i have defined a single column as Varchar(999999).
But it is throwing an error as
Code: Select all
The input rule does not map to any output rule
Cheers!!!!