Skip to Content
0
Former Member
Dec 02, 2008 at 05:44 AM

Suppress Target structure based on condition

34 Views

Hi

How to suppress target structure based on condition

Example:

Source is like:

<Details>

-


<Name>abdc</Name>

-


<ID>234</ID>

-


<Address>US</Address>

</Details>

I have two target structures

1:

<Details>

-


<Name>abdc</Name>

-


<ID>234</ID>

-


<Address>US</Address>

</Details>

2:

<Error>

<ErrorID>

</Error>

if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.

example

abc,123,US

abc

in above case second record has two null values

so my target structure should be

<Details>

-


<Name>abc</Name>

-


<ID>123</ID>

-


<Address>US</Address>

</Details>

<Error>

<ErrorID>2nd record has erro</ErrorID>

</Error>

How to acheive this..

Please help us

Regards

Sowmya