Skip to Content
0
Former Member
Mar 27, 2007 at 06:32 AM

Mapping parts of a simple message array

16 Views

Hi,

Suppose i have the flowing MT:

Root: 1..1

Item: 1..Unbound

Row: 1..1

Which contain the following message:

<Root>

<Item>

<Row>My flat file header...</Row>

</Item>

<Item>

<Row>My flatfeet row 1...</Row>

</Item>

<Item>

<Row>My flatfeet row 2...</Row>

</Item>

...

<Item>

<Row>My flatfile trailer...</Row>

</Item>

</Root>

And i want to map it to the following MT:

Root: 1..1

Header: 1..1

Row: 1..1

Body: 1..Unbound

Row: 1..1

Trailer: 1..1

Row: 1..1

So the result will look as folows:

<Root>

<Header>

<Row>My flatfile header...</Row>

</Header>

<Body>

<Row>My flatfile row 1...</Row>

</Body>

<Body>

<Row>My flatfile row 2...</Row>

</Body>

...

<Trailer>

<Row>My flatfile trailer...</Row>

</Trailer>

</Root>

What is the most simple way to do this?