Skip to Content
0
Former Member
Dec 05, 2006 at 10:31 AM

Data Conversion for Flatfiles in Sender-Adapter or Mapping

22 Views

Hi folks,

I get a flatfile - let's say - with three fields with names f1, f2 and f3, with the corresponding values. The adapter creates the following xml

<node1>

<f1>v1</f1>

<f2>v2</f2>

<f3>v3</f3>

</node1>

Has anybody an idea how to convert these structure into

<nodeA>

<name>f1</name>

<value>v1</value>

</nodeA>

<nodeA>

<name>f2</name>

<value>v2</value>

</nodeA>

<nodeA>

<name>f3</name>

<value>v3</value>

</nodeA>

without using Java? And if it is not possible how would a Java mapping look like? Or is it possible to create another structure with the file-adapter?