on 10-29-2010 1:55 AM
Hi All,
I can any one guide in following mapping problem:
Create target node if child element is not having data.
Source structure with data:
<data>
-<item>
--<SupplierN>01</SupplierN>
- </item>
-<item>
--<SN/>
-</item>
-<item>
--<SupplierN>03</SupplierN>
-</item>
</data>
Desired Target structure with data:
<data>
-<item>
--<SupplierN>01</SupplierN>
- </item>
-<item>
--<SupplierN>03</SupplierN>
-</item>
</data>
When I am using Create IF then my target structure is coming like below,
i.e. blank item node is coming(So my query is how can we remove blank target node in mapping?
http://picasaweb.google.com/rohilla.umesh/UntitledAlbum#5533264587094880578
<data>
-<item>
--<SupplierN>01</SupplierN>
- </item>
-<item />
-<item>
--<SupplierN>03</SupplierN>
-</item>
</data>
And if i am passing like below: No output is generating:
<data>
-<item>
--<SupplierN/>
- </item>
-<item>
--<SupplierN>03</SupplierN>
-</item>
</data>
Thanks & Regards
Hi.
Tried this.
SupplierN-----mapwithdefault......
constan "blank"--
>item
constant "blank"----
then
or more simply
SupplierN-----mapwithdefault......
constan "blank"--
>item
Edited by: Luis Ortiz on Oct 28, 2010 9:11 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.