Skip to Content
0
Former Member
Oct 19, 2006 at 08:19 PM

Mapping Issue

19 Views

Hi All,

My source structure is

<root>

<a></a>

<type>

<val1>

</val1>

</type>

</root>

Here the cardinality goes like this

<a> 1..1

<type> 1..unbounded

<val1> 1..1

Target structure

<test>

<action>insert</action>

<table>table1</table>

<access>

<tval></tval>

</access>

</test>

My requirement is if field a's value is "const" I need to have <access> node in my target struct as many times as <type>. I tried mapping <type> to <access>

I used a 'if with out else' to map <tval>. The mapping is like

condition part of 'if with out else' --> check <a> equals "const"

then part 'if with out else'--> <val1>

Result part of 'if with out else' --> <tval>

The problem here is, <access> node is created as many times as <type> but <tval> is created only for the first <access> node.

Can you help me out.... This is a bit urgent.. Pls do reply...

Thanks & Regards,

Jai Shankar.